Post

Replies

Boosts

Views

Activity

Comment on Issue to hide swiftUI view in UIHostingController
Hello, Thanks for your help! I tried your solution as you can see, and by searching a bit I saw that executing only "self.dismiss(animated: true, completion: nil)" should also work Unfortunately, still nothing in both cases.. What I tried : func showFlux() {   let nextView = UIHostingController(rootView: self.swiftUIView)   self.present(nextView, animated: true, completion: nil)  }     func hideFlux() {   self.presentedViewController?.dismiss(animated: true, completion: nil)  }
Jul ’21