TabView with “PageTabViewStyle” does not update it's content when @State var changes
问题 I came across a weird Issue in SwiftUI. I created a simple View that only holds a Button and a TabView that uses the PageViewStyle. It seems that the TabView does not update it's content correctly depending on the State of the Variable. It seems that the content gets updated somehow but the View wont be updated how I would expect Here is the Code of my View: struct ContentView: View { @State var numberOfPages: Int = 0 @State var selectedIndex = 0 var body: some View { VStack { Text("Tap Me")