Instance Property

isLayoutMarginsRelativeArrangement

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

Declaration

var isLayoutMarginsRelativeArrangement: Bool { get set }

Discussion

If true, the stack view will layout its arranged views relative to its layout margins. If false, it lays out the arranged views relative to its bounds. The default is false.

See Also

Configuring The Layout

var alignment: UIStackView.Alignment

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

var axis: NSLayoutConstraint.Axis

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: UIStackView.Distribution

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

var spacing: CGFloat

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

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software