Specifies an array of views for a specified gravity area in the stack view, replacing any previous views in that area.
- macOS 10.9+
The array of views you are specifying for the gravity area.
The gravity area that you’re specifying the array of views for. Valid values are those in the
NSStackenumeration, according to the stack view’s layout direction.
Calling this method updates the stack view’s layout, which can change the stack view size. As a result, views could detach or clip according to the clipping resistance of the stack view and the visibility priorities of its views.
A view in a detached state is not present in the stack view’s view hierarchy, but it still consumes memory. To respond to detachment and reattachment of views, implement an
NSStack object and assign it to the