Dismisses the currently active menu.
- iOS 3.2+
- Mac Catalyst 13.0+
trueto animate the dismissal of the currently active menu or
falseto 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.