One Logo Pool Ball
SwiftUI · IOS API REFERENCE

ControlWidgetConfigurationBuilder

struct · iOS 18.0+ · SDK 27.1

@resultBuilder struct ControlWidgetConfigurationBuilder

A custom attribute that constructs a control widget's body. The `@ControlWidgetConfigurationBuilder` attribute allows your control widget's body closure to produce a control widget configuration after zero or more other statements: struct GarageDoorOpener: ControlWidget { var body: some ControlWidgetConfiguration { let kind = "com.yourcompany.GarageDoorOpener" StaticControlConfiguration( kind: kind ) { ... } } }

Members (1)

static · iOS 18.0+

buildExpression

TypeScript
static buildExpression(content: EmptyControlWidgetConfiguration): EmptyControlWidgetConfiguration
Swift declaration
@export(implementation) static func buildExpression<Content>(_ content: Content) -> Content where Content : ControlWidgetConfiguration

Builds an expression within the builder.

Skipped declarations

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

ControlWidgetConfigurationBuilder.buildBlock(_:)

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

All SwiftUI types →