delegate
The delegate that provides items to the Touch Bar.
Declaration
weak var delegate: (any NSTouchBarDelegate)? { get set }Discussion
Employ a bar delegate, according to the needs of your app, to dynamically create items (NSTouchBarItem instances). For more information, see Item objects.
This property is conditionally archived, as described in the encodeConditionalObject(_:forKey:) method.