I send the user over to a page on a button click. This page is a UITableViewController.
Now if the user taps on a cell, I would like to push him ba
This one works for me (Swift UI)
struct DetailView: View { @Environment(\.presentationMode) var presentationMode: Binding var body: some View { VStack { Text("This is the detail view") Button(action: { self.presentationMode.wrappedValue.dismiss() }) { Text("Back") } } } }