Share via


UILayoutPriority Enum

Definition

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

public enum UILayoutPriority
type UILayoutPriority = 
Inheritance
UILayoutPriority

Fields

Name Value Description
FittingSizeLevel 50

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

DefaultLow 250

The priority at which a button hugs its content horizontally.

DragThatCannotResizeScene 490
SceneSizeStayPut 500
DragThatCanResizeScene 510
DefaultHigh 750

The resistance by which a button resists compressing its content.

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