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!
Post
Replies
Boosts
Views
Activity
I'm having the same issue. Did you find a workaround?