Show a new View from Button press Swift UI
Possible solutions 1.if you want to present on top of current view(ex: presentation style in UIKit) struct ContentView: View { @State var showingDetail = false var body: some View { Button(action: { self.showingDetail.toggle() }) { Text(“Show Detail”) }.sheet(isPresented: $showingDetail) { DetailView() } } } 2.if you want to reset current window scene stack(ex:after login show … Read more