showsMenuAsPrimaryAction
A Boolean value that determines whether the context menu interaction is the control’s primary action.
Declaration
var showsMenuAsPrimaryAction: Bool { get set }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 appcontextMenuInteractionisContextMenuInteractionEnabledcontextMenuInteraction(_:configurationForMenuAtLocation:)contextMenuInteraction(_:previewForDismissingMenuWithConfiguration:)contextMenuInteraction(_:previewForHighlightingMenuWithConfiguration:)contextMenuInteraction(_:willDisplayMenuFor:animator:)contextMenuInteraction(_:willEndFor:animator:)menuAttachmentPoint(for:)