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