CommandMenu
struct · iOS 14.0+ · SDK 27.1
nonisolated struct CommandMenu<Content> where Content : ViewCommand menus are stand-alone, top-level containers for controls that perform related, app-specific commands. Command menus are realized as menu bar menus on macOS, inserted between the built-in View and Window menus in order of declaration. On iOS, iPadOS, and tvOS, SwiftUI creates key commands for each of a menu's commands that has a keyboard shortcut.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
5 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
CommandMenu.init(_:content:)
callback cannot propagate synchronous failure
CommandMenu.init(_:content:)
callback cannot propagate synchronous failure
CommandMenu.init(_:content:)
callback cannot propagate synchronous failure
CommandMenu.init(_:content:)
callback cannot propagate synchronous failure
CommandMenu.body
This protocol needs associated types that cannot yet cross the bridge.