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.
SDK
- macOS 10.7+
Framework
- App
Kit
Declaration
struct 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.
SDK
Framework
struct Priority
static let required: NSLayout Constraint .Priority
A required constraint.
static let default High: NSLayout Constraint .Priority
Priority level with which a button resists compressing its content.
static let drag That Can Resize Window: NSLayout Constraint .Priority
Appropriate priority level for a drag that may end up resizing the window.
static let window Size Stay Put: NSLayout Constraint .Priority
Priority level for the window’s current size.
static let drag That Cannot Resize Window: NSLayout Constraint .Priority
Priority level at which a split view divider, say, is dragged.
static let default Low: NSLayout Constraint .Priority
Priority level at which a button hugs its contents horizontally.
static let fitting Size Compression: NSLayout Constraint .Priority
When you send a fitting
message to a view, the smallest size that is large enough for the view's contents is computed.
var priority: UILayout Priority
The priority of the constraint.
struct 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.
static let required: UILayout Priority
A required constraint.
static let default High: UILayout Priority
The priority level with which a button resists compressing its content.
static let default Low: UILayout Priority
The priority level at which a button hugs its contents horizontally.
static let fitting Size Level: UILayout Priority
The priority level with which the view wants to conform to the target size in that computation.