alignment
The view alignment within the stack view.
Declaration
var alignment: NSLayoutConstraint.Attribute { get set }Discussion
The default value for this property depends on whether the stack view is horizontal or vertical:
Horizontal: The default value is NSLayoutConstraint.Attribute.centerY.
Vertical: The default value is NSLayoutConstraint.Attribute.centerX.
These constants are described as part of the NSLayoutConstraint.Attribute enumeration in NSLayoutConstraint; see that enumeration for the other possible alignment values.