Since SwiftUI is declarative there is no dismiss method.
How can is add a dismiss/close button to the DetailView?
struct DetailView: View {
var body: some View {
Text("Detail")
}
}
struct ContentView : View {
var body: some View {
PresentationButton(Text("Click to show"), destination: DetailView())
}
}






