A container for grouping related menu items in an app menu or contextual menu.
- iOS 13.0+Beta
- tvOS 13.0+Beta
UIMenu objects and use them to construct the menus and submenus your app displays. You provide menus for your app when it runs on macOS, and key command items in those menus also appear in the discoverability HUD on iPad when the user presses the command key. You also use menus to display contextual actions in response to specific interactions with one of your views. Every menu has a title, an optional image, and an optional set of child items. When the user selects an item from the menu, UIKit executes the code that you provide.