Instance Property

spacing

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

Declaration

@property(nonatomic) CGFloat spacing;

Discussion

This property defines a strict spacing between arranged views for the UIStackViewDistributionFillProportionally distributions. It represents the minimum spacing for the UIStackViewDistributionEqualSpacing and UIStackViewDistributionEqualCentering distributions. Use negative values to allow overlap. The default value is 0.0.

See Also

Configuring The Layout

alignment

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

axis

The axis along which the arranged views are laid out.

baselineRelativeArrangement

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

distribution

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

layoutMarginsRelativeArrangement

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