Button inside navigationlink swiftui code example
Example: swiftui navigation link with button
Button(action: {
}) {
NavigationLink(destination: SecondView()) {
Text("click")
}
}
Button(action: {
}) {
NavigationLink(destination: SecondView()) {
Text("click")
}
}