Dismisses the currently active menu.
- iOS 3.2+
- Mac Catalyst 13.0+
YESto animate the dismissal of the currently active menu or
NOto dismiss it immediately.
Use this method to dismiss a menu programmatically. The document interaction controller can also dismiss the menu automatically in response to user actions.