Instance Property


The geometric padding inside the stack view, surrounding its views, in points.


var edgeInsets: NSEdgeInsets { get set }


The default value is (0, 0, 0, 0). Edge insets remain as they are if you change the value of a stack view’s orientation property or the value of its inherited userInterfaceLayoutDirection property.

See Also

Configuring the Stack View Layout

var orientation: NSUserInterfaceLayoutOrientation

The horizontal or vertical layout direction of the stack view.

enum NSUserInterfaceLayoutOrientation

The two stack view layout directions and, for clipping resistance and hugging priority, the two user interface axes.

var alignment: NSLayoutConstraint.Attribute

The view alignment within the stack view.

var spacing: CGFloat

The minimum spacing, in points, between adjacent views in the stack view.

var hasEqualSpacing: Bool

A Boolean value that indicates whether the spacing between adjacent views should equal each other.