Skip to content

Instantly share code, notes, and snippets.

@mazharulbelal
Last active June 13, 2022 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mazharulbelal/7779f93237a39f02539b84a979c5347c to your computer and use it in GitHub Desktop.
Save mazharulbelal/7779f93237a39f02539b84a979c5347c to your computer and use it in GitHub Desktop.
Open SwiftUI ViewController from UIKit Button press
let controller = UIHostingController(rootView: SwiftUIView())
self.navigationController?.pushViewController(controller, animated: true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment