---
title: "menuDidClose(_:)"
framework: appkit
role: symbol
role_heading: Instance Method
path: "appkit/nsmenudelegate/menudidclose(_:)"
---

# menuDidClose(_:)

Invoked after a menu closed.

## Declaration

```swift
@MainActor optional func menuDidClose(_ menu: NSMenu)
```

## Parameters

- `menu`: The menu that closed.

## Discussion

Discussion Don’t modify the structure of the menu or the menu items during this method.

## See Also

### Handling Open and Close Events

- [menuWillOpen(_:)](appkit/nsmenudelegate/menuwillopen(_:).md)
