Same problem if I append a value to path (NavigationPath).
Post
Replies
Boosts
Views
Activity
.navigationDestination should be placed inside the NavigationStack:
List {
NavigationLink("Go to MyView", value: "MyView")
}
…
NavigationStack {
Text("Home")
.navigationDestination(for: String.self) { val in
Text("View = \(val)")
}
}
This works for me.
Did you found a solution? I have the same problem here.