Type Alias

NSLayoutPriority

Layout priority used to indicate the relative importance of constraints, allowing Auto Layout to make appropriate tradeoffs when satisfying the constraints of the system as a whole.

Declaration

typedef float NSLayoutPriority;

Topics

Constants

NSLayoutPriorityRequired

A required constraint.

NSLayoutPriorityDefaultHigh

Priority level with which a button resists compressing its content.

NSLayoutPriorityDragThatCanResizeWindow

Appropriate priority level for a drag that may end up resizing the window.

NSLayoutPriorityWindowSizeStayPut

Priority level for the window’s current size.

NSLayoutPriorityDragThatCannotResizeWindow

Priority level at which a split view divider, say, is dragged.

NSLayoutPriorityDefaultLow

Priority level at which a button hugs its contents horizontally.

NSLayoutPriorityFittingSizeCompression

When you send a fittingSize message to a view, the smallest size that is large enough for the view's contents is computed.

See Also

Getting the Layout Priority

priority

The priority of the constraint.

UILayoutPriority

The layout priority is used to indicate to the constraint-based layout system which constraints are more important, allowing the system to make appropriate tradeoffs when satisfying the constraints of the system as a whole.

UILayoutPriorityRequired

A required constraint.

UILayoutPriorityDefaultHigh

The priority level with which a button resists compressing its content.

UILayoutPriorityDefaultLow

The priority level at which a button hugs its contents horizontally.

UILayoutPriorityFittingSizeLevel

The priority level with which the view wants to conform to the target size in that computation.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software