I was playing around with SwiftUI and want to be able to come back to the previous view when tapping a button, the same we use popViewController inside a
popViewController
Below works for me in XCode11 GM
self.myPresentationMode.wrappedValue.dismiss()