---
title: contextMenuInteraction
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicontrol/contextmenuinteraction
---

# contextMenuInteraction

A context menu interaction for the control.

## Declaration

```swift
var contextMenuInteraction: UIContextMenuInteraction? { get }
```

## Discussion

Discussion This property returns a UIContextMenuInteraction with the control set as its delegate. Before constructing the context menu interaction, the control verifies that it can serve as a viable delegate.

## See Also

### Managing context menus

- [Adding context menus in your app](uikit/adding-context-menus-in-your-app.md)
- [isContextMenuInteractionEnabled](uikit/uicontrol/iscontextmenuinteractionenabled.md)
- [showsMenuAsPrimaryAction](uikit/uicontrol/showsmenuasprimaryaction.md)
- [contextMenuInteraction(_:configurationForMenuAtLocation:)](uikit/uicontrol/contextmenuinteraction(_:configurationformenuatlocation:).md)
- [contextMenuInteraction(_:previewForDismissingMenuWithConfiguration:)](uikit/uicontrol/contextmenuinteraction(_:previewfordismissingmenuwithconfiguration:).md)
- [contextMenuInteraction(_:previewForHighlightingMenuWithConfiguration:)](uikit/uicontrol/contextmenuinteraction(_:previewforhighlightingmenuwithconfiguration:).md)
- [contextMenuInteraction(_:willDisplayMenuFor:animator:)](uikit/uicontrol/contextmenuinteraction(_:willdisplaymenufor:animator:).md)
- [contextMenuInteraction(_:willEndFor:animator:)](uikit/uicontrol/contextmenuinteraction(_:willendfor:animator:).md)
- [menuAttachmentPoint(for:)](uikit/uicontrol/menuattachmentpoint(for:).md)
