Instance Property

isVisible

A Boolean value that Indicates whether the Touch Bar is eligible for display.

Declaration

var isVisible: Bool { get }

Discussion

A value of true 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 list of identifiers for the current items in the Touch Bar.

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

Returns the Touch Bar item that corresponds to a given identifier.