<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ToolbarItemVisibilityPriority/init(higherThan:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI29ToolbarItemVisibilityPriorityV10higherThanA2C_tcfc"
  },
  "title" : "init(higherThan:)"
}
-->

# init(higherThan:)

Creates a priority higher than the specified value.

```
init(higherThan other: ToolbarItemVisibilityPriority)
```

## Discussion

The priority is higher than `other` but doesn’t cross above
the next higher system priority. For example,
`ToolbarItemVisibilityPriority(higherThan: .high)` returns a
value that is greater than `.high`.

Priorities created with the same base value are equal:

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)