Instance Property

customizationAllowedItemIdentifiers

A list of identifiers for items (NSTouchBarItem instances) you want shown in the bar’s customization UI; the system shows these items in addition to the bar’s default items.

Declaration

var customizationAllowedItemIdentifiers: [NSTouchBarItem.Identifier] { get set }

Discussion

The items you include in this array appear individually in the customization UI, arranged in the same order as you specify in the array. As long as there is available geometric space, a user can drag in to the associated bar any of the items in this list.

Always configure this property for a customizable bar.

The system archives this property.

See Also

Configuring User Customization

var customizationIdentifier: NSTouchBar.CustomizationIdentifier?

A globally-unique string that makes a bar customizable and that is used during instantiation and user customization.

var customizationRequiredItemIdentifiers: [NSTouchBarItem.Identifier]

An optional list of identifiers for items (NSTouchBarItem instances) you want to always appear in a bar and which the user cannot remove during customization.