---
title: "overlayView(_:shouldShowMenuForEvent:atPoint:)"
framework: visionkit
role: symbol
role_heading: Instance Method
path: "visionkit/imageanalysisoverlayviewdelegate/overlayview(_:shouldshowmenuforevent:atpoint:)"
---

# overlayView(_:shouldShowMenuForEvent:atPoint:)

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

## Declaration

```swift
@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

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

## Discussion

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.

## See Also

### Responding to key and menu events

- [overlayView(_:shouldHandleKeyDownEvent:)](visionkit/imageanalysisoverlayviewdelegate/overlayview(_:shouldhandlekeydownevent:).md)
- [overlayView(_:menu:willHighlight:)](visionkit/imageanalysisoverlayviewdelegate/overlayview(_:menu:willhighlight:).md)
- [overlayView(_:willOpen:)](visionkit/imageanalysisoverlayviewdelegate/overlayview(_:willopen:).md)
- [overlayView(_:didClose:)](visionkit/imageanalysisoverlayviewdelegate/overlayview(_:didclose:).md)
- [overlayView(_:needsUpdate:)](visionkit/imageanalysisoverlayviewdelegate/overlayview(_:needsupdate:).md)
- [overlayView(_:updatedMenuFor:for:at:)](visionkit/imageanalysisoverlayviewdelegate/overlayview(_:updatedmenufor:for:at:).md)
