DEV Community

loading...

Discussion on: Working with your UIViewController and SwiftUI

Collapse
kevinmaarek profile image
Maarek Author

Can you provide some of your SwiftUI code ?

Collapse
jpelayo profile image
jpelayo • Edited

Thanks... but... solved!

Thing is that you can also do:


 func makeUIViewController(context: UIViewControllerRepresentableContext<MyView>) -> ViewController {


        return UIStoryboard(name: "MyViewControllerStoryboard", bundle: nil).instantiateViewController(identifier: String(describing: ViewController.self)) as! ViewController

    }

Cheers!