menu(for:)
Gets the menu for the specified menu identifier.
Declaration
func menu(for identifier: UIMenu.Identifier) -> UIMenu?Parameters
- identifier:
The identifier of the menu to retrieve.
Return Value
A menu object; otherwise, nil if there are no menus with the specified identifier.