re: Working with your UIViewController and SwiftUI VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Almost there with my test, but the original ViewController lacks something, as the compiler cries: Protocol 'View' requirement '_makeView(view:inp...
 

Can you provide some of your SwiftUI code ?

 

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!

code of conduct - report abuse