I have a navigation link as an option in a context menu but it does nothing.
.contextMenu{
NavigationLink(destination: Text("Hello")){
Label("Edit", systemImage: "pencil")
}
}
I am not sure why and I couldn't find anything relating to this issue. Is this something that can work or do I need to implement it in another way?
NavigationLinkshould be right inNavigationView, but contextMenu is out of context ofNavigationView, because it is in own view hierarchy.A possible solution is to activate link by button from context menu, like