Instance Property


Indicates whether the bar is eligible for display.


var isVisible: Bool { get }


A value of YES indicates that the bar is attached to an eligible bar provider and that its items are displayable, assuming adequate geometric space. A bar provider is an object that conforms to the NSTouchBarProvider protocol. For more on bar providers, read NSTouchBar Objects.

This property is key–value observable.

See Also

Observing Bar Status

var itemIdentifiers: [NSTouchBarItem.Identifier]

The read-only list of identifiers for the items (NSTouchBarItem instances) for the bar, as currently configured by the user.

func item(forIdentifier: NSTouchBarItem.Identifier) -> NSTouchBarItem?

Returns an instantiated NSTouchBarItem instance that corresponds to a given identifier.