Specifies custom spacing, in points, to employ between a specified view and the view that follows it in the stack view.
- macOS 10.9+
The custom trailing space to use between the
aview and the one that follows it, in points.
Default value is
NSStack, which indicates that the view does not use custom spacing.
View Spacing Use Default
The view whose trailing spacing you are setting.
For a horizontal stack view, this method sets custom spacing between a specified view and the view to its right when the user interface direction is left to right. (See the inherited
user property for information on layout direction.) For a vertical stack view, this method sets custom spacing below a specified view.
If you set custom spacing for a view, it overrides the stack view’s default spacing for that view, as set in the
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.