How to show NavigationLink as a button in SwiftUI
You don’t need to wrap your view inside the NavigationLink to make it trigger the navigation when pressed. We can bind a property with our NavigationLink and whenever we change that property our navigation will trigger irrespective of what action is performed. For example: struct SwiftUI: View { @State private var action: Int? = 0 … Read more