menuWillOpen(_:)
Invoked when a menu is about to open.
Declaration
@MainActor optional func menuWillOpen(_ menu: NSMenu)Parameters
- menu:
The menu that is about to open.
Discussion
Don’t modify the structure of the menu or the menu items during this method.