<!--
{
  "availability" : [
    "macOS: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "VisionKit",
  "identifier" : "/documentation/VisionKit/ImageAnalysisOverlayViewDelegate/overlayView(_:didClose:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "VisionKit"
    ],
    "preciseIdentifier" : "s:9VisionKit32ImageAnalysisOverlayViewDelegateP07overlayF0_8didCloseyAA0cdeF0C_So6NSMenuCtF"
  },
  "title" : "overlayView(_:didClose:)"
}
-->

# overlayView(_:didClose:)

Notifies your app that the given menu closed.

```
@MainActor func overlayView(_ overlayView: ImageAnalysisOverlayView, didClose menu: NSMenu)
```

## Parameters

`overlayView`

The associated overlay view for the menu.

`menu`

The menu that closed.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)