Instance Property

detachedViews

An array containing the detached views from all of the stack view’s gravity areas.

Declaration

@property(readonly, copy) NSArray<__kindof NSView *> *detachedViews;

Discussion

A view in a detached state is not present in the stack view’s view hierarchy, but it still consumes memory.

See Also

Inspecting a Stack View

views

The array of views owned by the stack view.

- viewsInGravity:

Returns the array of views in the specified gravity area in the stack view.

- clippingResistancePriorityForOrientation:

Returns the Auto Layout priority for resisting clipping of views in the stack view when Auto Layout attempts to reduce the stack view’s size.

- huggingPriorityForOrientation:

Returns the Auto Layout priority for the stack view to minimize its size to fit its contained views as closely as possible, for a specified user interface axis.