I am trying to add a Tab View to my app. On Xcode 13 it disappears when I navigate to a tab that contains a List or view that has a scroll enabled. I am not sure if this is a bug or not. It works perfectly fine on Xcode 12.5.1 to iOS 15 Device. But Xcode 13 to iOS 15 is not working.
Here is my Code:
struct ContentView: View {
var body: some View {
TabView {
HomeView()
.tabItem {
Image(systemName: "1.circle")
Text("First")
}
.tag(1)
FirstView()
.tabItem {
Image(systemName: "2.circle")
Text("Second")
}
.tag(2)
}
}
}
struct HomeView: View {
var body: some View {
Text("Hello, World!")
}
}
struct FirstView: View {
var body: some View {
NavigationView{
List{
Text("Hello")
}
}
}
}