---
title: "popoverWillClose(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nspopoverdelegate/popoverwillclose(_:)"
---

# popoverWillClose(_:)

Invoked when the popover is about to close.

## Declaration

```swift
@MainActor optional func popoverWillClose(_ notification: Notification)
```

## Discussion

Discussion Invoked on the delegate when the willCloseNotification notification is sent. This method will also be invoked on the delegate’s popover, if the method has been implemented.

## See Also

### Popover Visibility

- [popoverShouldClose(_:)](appkit/nspopoverdelegate/popovershouldclose(_:).md)
- [popoverWillShow(_:)](appkit/nspopoverdelegate/popoverwillshow(_:).md)
- [popoverDidShow(_:)](appkit/nspopoverdelegate/popoverdidshow(_:).md)
- [popoverDidClose(_:)](appkit/nspopoverdelegate/popoverdidclose(_:).md)
- [popoverDidDetach(_:)](appkit/nspopoverdelegate/popoverdiddetach(_:).md)
- [popoverShouldDetach(_:)](appkit/nspopoverdelegate/popovershoulddetach(_:).md)
