I\'ve got a basic view with a button using SwiftUI and I\'m trying to present a new screen/view when the button is tapped. How do I do this? Am I suppose to create a delegat
Here's another way to present a view WITHOUT using NavigationView. This is like UIKit's UIModalPresentationStyle.currentContext.
UIModalPresentationStyle.currentContext
struct PresenterButtonView: View { var body: some View { PresentationButton(Text("Tap to present"), destination: Text("Hello world")) }}