Generic Instance Method
Attaches a contextual menu to the view.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- watchOS 6.0+
- Xcode 11.0+
A view that adds a contextual menu to this view.
Use contextual menus to add actions that change depending on the user’s current focus and task.
The following example creates text with a contextual menu:
Configuring Context Menu Views
A container for views that you present as a menu items in a contextual menu in response to the standard system gesture.