Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

uikit call swiftui view

    @IBAction func buttonTapped(_ sender: Any) {
        let newView = UIHostingController(rootView: SwiftUIView(viewObj: self.view, sb: self.storyboard, dismiss: self.dismiss) )
        view.window?.rootViewController = newView
        view.window?.makeKeyAndVisible()
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #uikit #call #swiftui #view
ADD COMMENT
Topic
Name
3+5 =