customSpacing(after:)
Returns the custom spacing, in points, between a specified view in the stack view and the view that follows it.
Declaration
func customSpacing(after view: NSView) -> CGFloatParameters
- 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).
Discussion
If you set custom spacing for a view using the setCustomSpacing(_:after:) 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.