I have SwiftUI page, it's being navigated from UIKit view. I want to set a title to this page, what I'm doing is
// code of UIKit view
let controller = UIHostingController(rootView: SwiftUIView())
controller.title = "title"
MyNavigationManager.present(controller)
Is there a way I can access the hosting controller within SwiftUI?
Then I could write code like
self.hostingController?.title = "title"