Contents

defaultItemIdentifiers

A required list of identifiers for items that you want to appear in the Touch Bar after instantiating it.

Declaration

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

Discussion

Always specify this property for an NSTouchBar object, even if you elect to make the bar noncustomizable. The system:

  • Shows this list’s items by default when the system displays the bar.

  • Includes a preconfigured bar, containing these items, in the associated customization UI (when you have assigned the bar a customizationIdentifier property value); the user can drag the default bar into the Touch Bar, should they want to return to the default configuration.

The system archives this property.

See Also

Related Documentation

Providing bar items