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

# overlayView(_:shouldShowMenuForEvent:atPoint:)

Provides a Boolean value that indicates whether the overlay view shows a menu for the given event.

```
@MainActor func overlayView(_ overlayView: ImageAnalysisOverlayView, shouldShowMenuForEvent event: NSEvent, atPoint point: CGPoint) -> Bool
```

## Parameters

`overlayView`

The overlay view in which the menu appears.

`event`

The event that occurs.

`point`

The location of the event.

## Return Value

`true` if the menu appears in the overlay; otherwise, `false`.

## Discussion

Implement this method if you don’t want the overlay view to show a menu for a specific
event at a location. The default return value is `true`.

---

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)