Answers for "uikit call swiftui view"

0

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()
    }
Posted by: Guest on July-16-2021

Browse Popular Code Answers by Language