I understand there is PresentationButton and NavigationButton in order to change views in the latest SwiftUI. However I want to do a simple operation like below. When user click
Try with state & .sheet
struct ContentView: View { @State var showingDetail = false var body: some View { Button(action: { self.showingDetail.toggle() }) { Text("Show Detail") }.sheet(isPresented: $showingDetail) { DetailView() } } }