Post

Replies

Boosts

Views

Activity

Remove Stacked views from NavigationView in SwiftUI
Hi, I am using NavigationLink on SwiftUI to navigate from one view to another. My problem is that i can not find a way to access the stacked Views on NavLink and go back to previous view programmatically, skipping the views in between. For example View A -> View B -> ViewC -> View D -> press back ---> View B (I need to remove ViewC from the NavView stack so on back i should go to viewB again.) I am using NavigationLink(destination: , tag: , selection: ) { } constructor on the entire application. Is there any way to access and manage the stacked views in NavigationLink? Thank you.
1
0
6.3k
Nov ’21
Remove Stacked views from NavigationView in SwiftUI
Hi, I am using NavigationLink on SwiftUI to navigate from one view to another. My problem is that i can not find a way to access the stacked Views on NavLink and go back to previous view programmatically, skipping the views in between. For example View A -> View B -> ViewC -> View D -> press back ---> View B (I need to remove ViewC from the NavView stack so on back i should go to viewB again.) I am using NavigationLink(destination: , tag: , selection: ) { } constructor on the entire application. Is there any way to access and manage the stacked views in NavigationLink? Thank you.
Replies
1
Boosts
0
Views
6.3k
Activity
Nov ’21