Contents

init(lowerThan:)

Creates a priority lower than the specified value.

Declaration

init(lowerThan other: ToolbarItemVisibilityPriority)

Discussion

The priority is lower than other but doesn’t cross below the next lower system priority. For example, ToolbarItemVisibilityPriority(lowerThan: .high) returns a value that is less than .high but greater than .automatic.

Priorities created with the same base value are equal:

let x = ToolbarItemVisibilityPriority(lowerThan: .high)
let y = ToolbarItemVisibilityPriority(lowerThan: .high)
x == y // true

See Also

Creating custom priorities