I\'ve read a lot here about navigation in SwiftUI and tried a couple of things, but nothing is working as desired.
Basically, I have a view with a list of workouts and y
You can use NavigationLink as Button with ZStack:
@State var tag:Int? = nil ZStack { NavigationLink(destination: MyModal(), tag: 1, selection: $tag) { EmptyView() } Button(action: { self.tag = 1 }, label: { Text("show view tag 1") }) }
Hope it will help.