Declaration

weak var parent: (any GSContainerProtocol)? { get set }

Declaration

@property (weak) GSContainer * parent;

Declaration

parent() -> GSContainer
setParent_(parent: GSContainer)

Discussion

The parent is not retained. Use the parent’s collection APIs to attach or detach an object so that both sides of the relationship remain consistent.

See Also

Owners

  • The layer containing the receiver, or nil when the receiver is detached from a layer.

  • The glyph containing the receiver, or nil when the receiver is detached from a glyph.