---
title: showsCloseButton
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nspopovertouchbaritem/showsclosebutton
---

# showsCloseButton

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

## Declaration

```swift
var showsCloseButton: Bool { get set }
```

## Discussion

Discussion When true, a close button is automatically displayed when the popover bar is displayed. When false, it is your responsibility to dismiss the popover bar.

## See Also

### Configuring the expanded popover

- [popoverTouchBar](appkit/nspopovertouchbaritem/popovertouchbar.md)
- [pressAndHoldTouchBar](appkit/nspopovertouchbaritem/pressandholdtouchbar.md)
