---
title: pressAndHoldTouchBar
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspopovertouchbaritem/pressandholdtouchbar
---

# pressAndHoldTouchBar

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

## Declaration

```swift
var pressAndHoldTouchBar: NSTouchBar? { get set }
```

## Discussion

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

- [popoverTouchBar](appkit/nspopovertouchbaritem/popovertouchbar.md)
- [showsCloseButton](appkit/nspopovertouchbaritem/showsclosebutton.md)
