---
title: "dismissPopover(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspopovertouchbaritem/dismisspopover(_:)"
---

# dismissPopover(_:)

Restores the previously visible main bar.

## Declaration

```swift
func dismissPopover(_ sender: Any?)
```

## Discussion

Discussion This method has the same effect as the user tapping the optional close button.

## See Also

### Expanding and collapsing a popover

- [showPopover(_:)](appkit/nspopovertouchbaritem/showpopover(_:).md)
- [makeStandardActivatePopoverGestureRecognizer()](appkit/nspopovertouchbaritem/makestandardactivatepopovergesturerecognizer().md)
