Post #2357434
2026-01-20 20:48 UTC
I have a minimal reproduction if anyone is interested: https://gist.github.com/Gray-Wind/0c027a06c4dd3c7954b5b5995a6cbdd6 #SwiftUI
Replies (1)
-
@teilweise@layer8.space 2026-01-21 10:56
@Gray_Wind@mastodon.social Not sure if it helps (cannot test it right now) but the supposed order is: parent.addChild(vc) parent.addSubview(vc.view) // set position/size/constraints of vc.view vc.didMove(toParent: parent) (see https://developer.apple.com/documentation/uikit/creating-a-custom-container-view-controller, section “Add a child view controller programmatically to your content”) You are adding the subview before adding the child VC.