One Logo Pool Ball
SwiftUI · IOS API REFERENCE

CommandGroup

struct · iOS 14.0+ · SDK 27.1

nonisolated struct CommandGroup<Content> where Content : View

Groups of controls that you can add to existing command menus. In macOS, SwiftUI realizes command groups as collections of menu items in a menu bar menu. In iOS, iPadOS, and tvOS, SwiftUI creates key commands for each of a group'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

4 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

CommandGroup.init(before:addition:)

callback cannot propagate synchronous failure

CommandGroup.init(after:addition:)

callback cannot propagate synchronous failure

CommandGroup.init(replacing:addition:)

callback cannot propagate synchronous failure

CommandGroup.body

This protocol needs associated types that cannot yet cross the bridge.

All SwiftUI types →