UIMenu

Asked on 03/05/2025

1 search

The concept of UIMenu and related menu actions was discussed in the session titled "What’s new in UIKit" at WWDC 2024. In this session, it was highlighted that menu actions provide all of an app's commands in the macOS menu bar and in the iPadOS and visionOS keyboard shortcut menus. With iOS 18, menu actions have become more useful for iPhone-only apps. Developers are encouraged to ready their apps with UICommand, UIKeyCommand, and UIActions to support other system invocations. These commands can be invoked by the system to control apps, such as when an app is used through iPhone mirroring, allowing UIKeyCommands to be invoked from the Mac keyboard.

For more details, you can refer to the chapter on Menu actions in the "What’s new in UIKit" session.