Instance Method


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


- (CGFloat)customSpacingAfterView:(NSView *)view;



The view whose trailing spacing you are getting.

Return Value

The number of points between the trailing edge of the specified view and the one that follows it (that is, the one with the next highest index order).


If you set custom spacing for a view using the setCustomSpacing:afterView: method, it overrides the stack view’s default spacing as set in the spacing property.

A stack view retains custom spacing across layout updates. Custom spacing for a view is lost if you remove the view from the stack view or specify a new value.

See Also

Configuring Views in a Stack View

- setCustomSpacing:afterView:

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

- visibilityPriorityForView:

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

- setVisibilityPriority:forView:

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