isVisible
A Boolean value indicating if the menu bar currently displays the status item.
Declaration
var isVisible: Bool { get set }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.