---
title: isVisible
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsstatusitem/isvisible
---

# isVisible

A Boolean value indicating if the menu bar currently displays the status item.

## Declaration

```swift
var isVisible: Bool { get set }
```

## Discussion

Discussion Setting this property either shows or hides the status item within the menu bar. The item’s visiblity may also change if the user removes the item manually, and you can watch for changes in visibility using key-value observation. The status item’s visiblity persists and restores automatically based on the value of autosaveName. This property returns true even if the status item is temporarily hidden due to insufficient space in the menu bar. The default value is true.

## See Also

### Configuring the Status Item’s Appearance

- [length](appkit/nsstatusitem/length.md)
- [squareLength](appkit/nsstatusitem/squarelength.md)
- [variableLength](appkit/nsstatusitem/variablelength.md)
