Post

Replies

Boosts

Views

Activity

Reply to confirmationDialog not working in child view controller
I had the same issue. The problem was with adding the child controller, or rather the lack of it. The solution was to call addChild(_:) and didMove(toParent:) when adding the UIHostingController. I updated your example: let dialogView = DialogView() let dialogVC = UIHostingController(rootView: dialogView) addChild(dialogVC) bottomView.addPinnedSubview(child: dialogVC.view) dialogVC.didMove(toParent: self) Hope this helps!
May ’22