Lingua

NSLayoutPriority Enum

Definition

Provides standard priority values used with Auto Layout constraints to resolve conflicts between competing constraints.

public enum NSLayoutPriority
type NSLayoutPriority = 
Inheritance
NSLayoutPriority

Fields

Name Value Description
FittingSizeCompression 50

The priority at which a view is compressed to its minimum size that still fits its content.

DefaultLow 250

A low priority used for constraints that are satisfied only if higher-priority constraints allow it, such as a view's content-hugging priority.

DragThatCannotResizeWindow 490

The priority at which a user's drag operation should not resize the window.

WindowSizeStayPut 500

The priority at which a window's current size is preferred to remain unchanged.

DragThatCanResizeWindow 510

The priority at which a window can be resized by the user beyond its current drag operation.

DefaultHigh 750

A high priority used for constraints that should be satisfied if at all possible, such as a view's preferred content size.

Required 1000

The highest priority; a constraint at this priority must always be satisfied and cannot be broken.

Applies to