Contents

alignment

The alignment of the arranged subviews perpendicular to the stack view’s axis.

Declaration

var alignment: UIStackView.Alignment { get set }

Discussion

This property determines how the stack view lays out its arranged views perpendicularly to its axis. The default value is UIStackView.Alignment.fill. For a list of possible values, see UIStackView.Alignment.

See Also

Configuring the layout