Instance Method

replace(menu:with:)

Replaces the specified menu with a new menu.

Required.

Declaration

func replace(menu replacedIdentifier: UIMenu.Identifier, with replacementMenu: UIMenu)

Parameters

replacedIdentifier

The identifier of the menu to replace.

replacementMenu

The replacement menu.

See Also

Replacing Menus and Child Menu Elements

func replaceChildren(ofMenu: UIMenu.Identifier, from: ([UIMenuElement]) -> [UIMenuElement])

Replaces the elements in a menu with the elements returned by the specified handler block.

Required.