Contents

dismissMenu(animated:)

Dismisses the currently active menu.

Declaration

func dismissMenu(animated: Bool)

Parameters

  • animated:

    Specify True to animate the dismissal of the currently active menu or False to dismiss it immediately.

Discussion

Use this method to dismiss a menu programmatically. The document interaction controller can also dismiss the menu automatically in response to user actions.

See Also

Presenting and dismissing menus