UILayoutPriority 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
UILayoutPriorityUILayoutPriority
Attributes

Fields

DefaultHigh DefaultHigh 750

The resistance by which a button resists compressing its content.

DefaultLow DefaultLow 250

The priority at which a button hugs its content horizontally.

FittingSizeLevel FittingSizeLevel 50

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

Required 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