Instance Method

setMenuVisible(_:animated:)

Shows or hides the editing menu, optionally animating the action.

Declaration

func setMenuVisible(_ menuVisible: Bool, animated: Bool)

Parameters

menuVisible

true if the menu should be shown, false if it should be hidden.

animated

true if the showing or hiding of the menu should be animated, otherwise false.

Discussion

Before showing the menu, be sure to position it relative to the selection. See setTargetRect(_:in:) for details. If you do not set the target rect before displaying the menu, it appears at screen coordinates (0.0, 0.0).

See Also

Showing and Hiding the Menu