Swiftui Cannot mix up a UIViewController + Complier bug problem

I have a problem that i fixed for 2 days still cannot solve. My project is like this. struct ContentView: View{ var body: some View{ Controller() } } struct Controller: UIViewControllerRespresentable{ func makeUIViewController(context: Context) -> Contro { let viewController = Contro() //additional setup return viewController } func updateUIViewController(_ uiViewController: Contro, context: Context) { //update Content… Read More Swiftui Cannot mix up a UIViewController + Complier bug problem

Crash when trying to update the UI on a previous view controller

Alright I have view controller A that presents view controller B like so… @IBAction func presentView(_ sender: Any) { let storyBoard : UIStoryboard = UIStoryboard(name: "main", bundle:nil) let vc = storyBoard.instantiateViewController(withIdentifier: "Popout") as! PopoutWindow vc.modalTransitionStyle = .coverVertical vc.modalPresentationStyle = .overFullScreen self.present(vc, animated:true, completion:nil) } When I’m done with view controller B, I dismiss it like… Read More Crash when trying to update the UI on a previous view controller