Structure

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.

Topics

Type Properties

static let defaultHigh: UILayoutPriority

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

static let defaultLow: UILayoutPriority

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

static let fittingSizeLevel: UILayoutPriority

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

Relationships

See Also

Getting the Layout Priority

var priority: UILayoutPriority

The priority of the constraint.

static let defaultHigh: UILayoutPriority

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

static let defaultLow: UILayoutPriority

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

static let fittingSizeLevel: UILayoutPriority

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

struct NSLayoutConstraint.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.