Share via


UIStackViewDistribution Enum

Definition

How the views in a UIStackView are distributed along the view's alignment axis.

[ObjCRuntime.Native]
public enum UIStackViewDistribution
[<ObjCRuntime.Native>]
type UIStackViewDistribution = 
Inheritance
UIStackViewDistribution
Attributes

Fields

Name Value Description
Fill 0

Attempts to fill along the Axis according to the ArrangedSubviews' ContentCompressionResistancePriority(UILayoutConstraintAxis) and ContentHuggingPriority(UILayoutConstraintAxis) properties.

FillEqually 1

Attempts to fill along the Axis by giving the ArrangedSubviews the same space.

FillProportionally 2

Attempts to fill along the Axis by giving the ArrangedSubviews the space required by their IntrinsicContentSize property.

EqualSpacing 3

Attempts to maintain equal spacing between ArrangedSubviews.

EqualCentering 4

Attempts to maintain equal center-to-center spacing between ArrangedSubviews.

Applies to