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