UIStackViewDistribution UIStackViewDistribution Enum

Definition

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

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UIStackViewDistribution
type UIStackViewDistribution = 
Inheritance
UIStackViewDistributionUIStackViewDistribution
Attributes

Fields

EqualCentering EqualCentering 4

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

EqualSpacing EqualSpacing 3

Attempts to maintain equal spacing between ArrangedSubviews.

Fill Fill 0

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

FillEqually FillEqually 1

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

FillProportionally FillProportionally 2

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

Applies to