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

# overlayView(_:needsUpdate:)

Notifies your app that the given menu needs updating.

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

## Parameters

`overlayView`

The associated overlay view for the menu.

`menu`

The menu that updates.

---

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)