A required constraint.
SDKs
- iOS 6.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
const UILayout Priority UILayoutPriorityRequired;
Discussion
Do not specify a layout constraint that exceeds this number.
A required constraint.
SDKs
Framework
const UILayout Priority UILayoutPriorityRequired;
Do not specify a layout constraint that exceeds this number.
priority
The priority of the constraint.
UILayout Priority
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.
UILayout Priority Default High
The priority level with which a button resists compressing its content.
UILayout Priority Default Low
The priority level at which a button hugs its contents horizontally.
UILayout Priority Fitting Size Level
The priority level with which the view wants to conform to the target size in that computation.
NSLayout Priority
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.