---
title: visibilityPriority
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nstouchbaritem/visibilitypriority
---

# visibilityPriority

Determines which items are shown in a bar when space is limited.

## Declaration

```swift
var visibilityPriority: NSTouchBarItem.Priority { get set }
```

## Discussion

Discussion The bar hides items of lower priority when there is not enough space to show all items. Use this property to specify the relative priority of the items in your bar.

## See Also

### Managing item visibility

- [NSTouchBarItem.Priority](appkit/nstouchbaritem/priority.md)
- [isVisible](appkit/nstouchbaritem/isvisible.md)
