contextMenuInteraction
A context menu interaction for the control.
Declaration
var contextMenuInteraction: UIContextMenuInteraction? { get }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 appisContextMenuInteractionEnabledshowsMenuAsPrimaryActioncontextMenuInteraction(_:configurationForMenuAtLocation:)contextMenuInteraction(_:previewForDismissingMenuWithConfiguration:)contextMenuInteraction(_:previewForHighlightingMenuWithConfiguration:)contextMenuInteraction(_:willDisplayMenuFor:animator:)contextMenuInteraction(_:willEndFor:animator:)menuAttachmentPoint(for:)