Editar

Compartilhar via


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
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