---
title: showsMenuAsPrimaryAction
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uicontrol/showsmenuasprimaryaction
---

# showsMenuAsPrimaryAction

A Boolean value that determines whether the context menu interaction is the control’s primary action.

## Declaration

```swift
var showsMenuAsPrimaryAction: Bool { get set }
```

## Discussion

Discussion If this value is true, the contextMenuInteraction becomes the primary action of the control, and the menu shows in response to the touchDown event. The default value is false.

## See Also

### Managing context menus

- [Adding context menus in your app](uikit/adding-context-menus-in-your-app.md)
- [contextMenuInteraction](uikit/uicontrol/contextmenuinteraction.md)
- [isContextMenuInteractionEnabled](uikit/uicontrol/iscontextmenuinteractionenabled.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)
