One Logo Pool Ball
WidgetKit · IOS API REFERENCE

ControlWidgetButton

struct · iOS 18.0+ · SDK 27.1

@MainActor @preconcurrency struct ControlWidgetButton<Label, ActionLabel, Action> where Label : View, ActionLabel : View

A control template representing a button. Buttons don't have state; use them for fire-and-forget actions such as playing a sound or launching an app.

Members (0)

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

Skipped declarations

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

ControlWidgetButton.body

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

ControlWidgetButton.init(action:label:actionLabel:)

This declaration needs Swift generic type arguments. (no canonical witness for Action)

ControlWidgetButton.init(action:label:)

This declaration needs Swift generic type arguments. (no canonical witness for Action)

ControlWidgetButton.init(action:label:)

This declaration needs Swift generic type arguments. (no canonical witness for Action)

ControlWidgetButton.init(_:action:actionLabel:)

This declaration needs Swift generic type arguments. (no canonical witness for Action)

ControlWidgetButton.init(_:action:actionLabel:)

This declaration needs Swift generic type arguments. (no canonical witness for Action)

ControlWidgetButton.init(_:action:actionLabel:)

This declaration needs Swift generic type arguments. (no canonical witness for Action)

All WidgetKit types →