error appears when i try to put navigation link inside button code
Button("back") {
NavigationLink(destination: ContentView())
}
^
1
2
2.2k