Instance Property

pressAndHoldTouchBar

The bar that is displayed when a user press-and-holds on the popover item.

Declaration

var pressAndHoldTouchBar: NSTouchBar? { get set }

Discussion

This NSTouchBar can be the same as the one used for the popoverTouchBar property, but does not have to be.

When non-nil this touch bar is displayed while the user holds their finger down on the collapsed representation of the popover item. When the user raises their finger, this bar disappears.

See Also

Configuring the Expanded Popover

var popoverTouchBar: NSTouchBar

The bar displayed when this item is "popped."

var showsCloseButton: Bool

A Boolean value that determines whether a close button should be shown on the popover bar.