Post

Replies

Boosts

Views

Activity

NavigationStack No Animations and faulty push when Nested Inside TabView page style
I'm on iOS16. I have a NavigationStack nested inside a Paging TabView as such. When the navigation link is tapped there is no animation to the pushed view. After going back to the root view (ContentView) when the navigation link is tapped nothing happens. I tried the workaround posted at https://developer.apple.com/forums/thread/728132 but that didn't work. The issue only happens with the page tab view style. struct ContentView: View { var body: some View { TabView { NavigationStack { VStack { NavigationLink("Push to stack") { Text("Hello!") } } .navigationTitle("Pushed View") } } .tabViewStyle(.page(indexDisplayMode: .automatic)) // Works if not page style } } Thanks, Nigel
0
1
467
Jul ’23