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

# popoverDidDetach(_:)

Indicates that a popover has been released while it’s in an implicitly detached state.

## Declaration

```swift
@MainActor optional func popoverDidDetach(_ popover: NSPopover)
```

## Parameters

- `popover`: The popover that detached from its anchor view and is not closing.

## Discussion

Discussion This method is not called when the popover’s detached window is returned by detachableWindow(for:).

## See Also

### Popover Visibility

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