Link Search Menu Expand Document

LayoutPriority

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.

public struct LayoutPriority: Equatable, Hashable, RawRepresentable 

Inheritance

Equatable, Hashable, RawRepresentable

Nested Type Aliases

RawValue

public typealias RawValue = Float

Initializers

init(rawValue:)

public init(rawValue: RawValue) 

init(_:)

public init(_ rawValue: RawValue) 

Properties

rawValue

public let rawValue: RawValue

required

A required constraint.

public static var required: LayoutPriority 

defaultHigh

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

public static var defaultHigh: LayoutPriority 

defaultLow

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

public static var defaultLow: LayoutPriority 

fittingSizeLevel

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

public static var fittingSizeLevel: LayoutPriority 

dragThatCanResizeScene

The priority with which a drag may end up resizing the window’s scene.

public static var dragThatCanResizeScene: LayoutPriority 

dragThatCannotResizeScene

The priority with which the a split view divider is dragged.

public static var dragThatCannotResizeScene: LayoutPriority 

sceneSizeStayPut

The priority with which the window’s scene prefers to stay the same size.

public static var sceneSizeStayPut: LayoutPriority