UILayoutPriority Enum

Definition

An enumeration of values used by flow layouts to prioritize constraints.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public enum UILayoutPriority
type UILayoutPriority = 
Inheritance
UILayoutPriority
Attributes

Fields

DefaultHigh 750

The resistance by which a button resists compressing its content.

DefaultLow 250

The priority at which a button hugs its content horizontally.

FittingSizeLevel 50

Generally not used; the priority at which a view wants to conform to the value of UIView.SystemLayoutSizeFitting.

Required 1000

Indicates a required constraint. The underlying value of this is 1000.

Remarks

Higher values are considered more important by the flow layout constraint engine. Application developers should not specify a layout priority greater than the value of Required

Applies to