Elektrine lite

← Feed

@teilweise@layer8.space

Post #2357435

2026-01-21 10:56 UTC

@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.

Replies (3)