An object representing a main or contextual menu system.
- iOS 13.0+
- Mac Catalyst 13.0+
- tvOS 13.0+
A menu system groups root menus together. The
main system has only one root menu while the
context system can have multiple root menus, each built in different
UIResponder objects like a view controller.
UIMenu in your implementation of
build to isolate changes to a specific system.
You can also use a menu system to rebuild or revalidate menus as changes occur in your app. To rebuild a menu, call the
set method. Call
set when you need the menu system to revalidate a menu.