<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIControl/showsMenuAsPrimaryAction",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIControl(py)showsMenuAsPrimaryAction"
  },
  "title" : "showsMenuAsPrimaryAction"
}
-->

# showsMenuAsPrimaryAction

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

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

## Discussion

If this value is <doc://com.apple.documentation/documentation/Swift/true>, the [`contextMenuInteraction`](/documentation/UIKit/UIControl/contextMenuInteraction) becomes the primary action of the control, and the menu shows in response to the [`touchDown`](/documentation/UIKit/UIControl/Event/touchDown) event.

The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)