Contents

spacing

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

Declaration

var spacing: CGFloat { get set }

Discussion

This property defines a strict spacing between arranged views for the UIStackView.Distribution.fillProportionally distributions. It represents the minimum spacing for the UIStackView.Distribution.equalSpacing and UIStackView.Distribution.equalCentering distributions. Use negative values to allow overlap. The default value is 0.0.

See Also

Configuring the layout