Contents

children

An array of view controllers that are hierarchical children of the view controller.

Declaration

var children: [NSViewController] { get set }

Discussion

You can add or remove child view controllers by using this property. When you do, the addChild(_:) or removeFromParent() method gets called accordingly.

See Also

Managing Child View Controllers in a Custom Container