Skip to content
Discussion options

You must be logged in to vote

Hi @tobitech, thank you for sharing the project. The problem is that you are applying navigationDestination on the outside of NavigationStack and so it does not see that state change and does not push the screen onto the stack. You need to move that view modifier inside the navigation stack's root view, like say on the List { … }, and then it will work.

This is how it works in vanilla SwiftUI too.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tobitech
Comment options

@mbrandonw
Comment options

Answer selected by tobitech
@tobitech
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants