Skip to content
Discussion options

You must be logged in to vote

Hi @appfrosch, the problem is in your NavigationLink:

NavigationLink(state: SasDocumentDetailDomain.State(document: document)) {
  Text(document.title)
}

It needs to point to the path state, not to the state of the screen you want to present:

NavigationLink(state: SasDocumentListDomain.Path.State.detail(document: document)) {
  Text(document.title)
}

This is because the navigation stack deals with the Path.State enum, and so the links need to push on Path.State.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by appfrosch
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants