Hi, I'm having this issue in a SwiftUI view presented modally using a UIHostingController from UIKit.
The self.presentationMode.wrappedValue.dismiss() is not working when the UIHostingController is presented modally like:
navigationController?.present(controller, animated: true)
but it works when it's 'pushed' like:
navigationController?.pushViewController(controller, animated: true)