One Logo Pool Ball
SwiftUI · IOS API REFERENCE

ControlGroup

struct · iOS 15.0+ · SDK 27.1

nonisolated struct ControlGroup<Content> where Content : View

A container view that displays semantically-related controls in a visually-appropriate manner for the context You can provide an optional label to this view that describes its children. This view may be used in different ways depending on the surrounding context. For example, when you place the control group in a toolbar item, SwiftUI uses the label when the group is moved to the toolbar's overflow menu. ContentView() .toolbar(id: "items") { ToolbarItem(id: "media") { ControlGroup { MediaButton() ChartButton() GraphButton() } label: { Label("Plus", systemImage: "plus") } } }

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

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

ControlGroup.init(content:)

callback cannot propagate synchronous failure

ControlGroup.body

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

ControlGroup.init(content:label:)

callback cannot propagate synchronous failure

ControlGroup.init(_:content:)

callback cannot propagate synchronous failure

ControlGroup.init(_:content:)

callback cannot propagate synchronous failure

ControlGroup.init(_:content:)

callback cannot propagate synchronous failure

ControlGroup.init(_:systemImage:content:)

callback cannot propagate synchronous failure

ControlGroup.init(_:systemImage:content:)

callback cannot propagate synchronous failure

ControlGroup.init(_:systemImage:content:)

callback cannot propagate synchronous failure

ControlGroup.init(_:image:content:)

callback cannot propagate synchronous failure

ControlGroup.init(_:image:content:)

callback cannot propagate synchronous failure

ControlGroup.init(_:image:content:)

callback cannot propagate synchronous failure

All SwiftUI types →