Instance Property

alignment

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

Declaration

var alignment: UIStackViewAlignment { get set }

Discussion

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

See Also

Configuring The Layout

var axis: UILayoutConstraintAxis

The axis along which the arranged views are laid out.

var isBaselineRelativeArrangement: Bool

A Boolean value that determines whether the vertical spacing between views is measured from their baselines.

var distribution: UIStackViewDistribution

The distribution of the arranged views along the stack view’s axis.

var isLayoutMarginsRelativeArrangement: Bool

A Boolean value that determines whether the stack view lays out its arranged views relative to its layout margins.

var spacing: CGFloat

The distance in points between the adjacent edges of the stack view’s arranged views.