Instance Method

visibilityPriority(for:)

Returns the visibility priority for a specified view in the stack view.

Declaration

func visibilityPriority(for view: NSView) -> NSStackView.VisibilityPriority

Parameters

aView

The view that you are getting the visibility priority for.

Return Value

The visibility priority for the specified view.

Discussion

Visibility priority is the Auto Layout priority for a view to remain attached to a stack view when Auto Layout reduces the stack view’s size (such as when a user reduces the enclosing window’s size).

See Also

Configuring Views in a Stack View

func customSpacing(after: NSView) -> CGFloat

Returns the custom spacing, in points, between a specified view in the stack view and the view that follows it.

func setCustomSpacing(CGFloat, after: NSView)

Specifies custom spacing, in points, to employ between a specified view and the view that follows it in the stack view.

func setVisibilityPriority(NSStackView.VisibilityPriority, for: NSView)

Sets the Auto Layout priority for a view to remain attached to the stack view when Auto Layout reduces the stack view’s size.