---
title: visibilityPriority
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstoolbaritem/visibilitypriority-swift.property
---

# visibilityPriority

The display priority associated with the toolbar item.

## Declaration

```swift
var visibilityPriority: NSToolbarItem.VisibilityPriority { get set }
```

## Discussion

Discussion The default value of this property is standard. Assign a higher priority to give preference to the toolbar item when space is limited. When a toolbar doesn’t have enough space to fit all of its items, it pushes lower-priority items to the overflow menu first. When two or more items have the same priority, the toolbar removes them one at a time starting from the trailing edge.

## See Also

### Getting the item’s configuration

- [isVisible](appkit/nstoolbaritem/isvisible.md)
- [isHidden](appkit/nstoolbaritem/ishidden.md)
- [isBordered](appkit/nstoolbaritem/isbordered.md)
- [isNavigational](appkit/nstoolbaritem/isnavigational.md)
- [isEnabled](appkit/nstoolbaritem/isenabled.md)
- [badge](appkit/nstoolbaritem/badge-17r3r.md)
- [NSItemBadge](appkit/nsitembadge-swift.struct.md)
- [style](appkit/nstoolbaritem/style-swift.property.md)
- [NSToolbarItem.Style](appkit/nstoolbaritem/style-swift.enum.md)
- [NSToolbarItem.VisibilityPriority](appkit/nstoolbaritem/visibilitypriority-swift.struct.md)
- [tag](appkit/nstoolbaritem/tag.md)
