I am want to navigate from UIKIT view controller to SwiftUI screen.
On button Tap in UIVIewcontroller
-(IBAction)buttonTap {
let SwiftUIController = UIHostingController(rootView: swiftUIScreen())
navigationController?.pushViewController(SwiftUIController, animated: true)
}
SwiftUI screen look something like this:
var body: some View {
NavigationView {
SwiftViewController()
}
}
I am trying to push another SwiftUI screen from UIView controller same code is working in iOS 16 but not working in iOS15.5 Please check