Contents

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