One Logo Pool Ball
SwiftUI · IOS API REFERENCE

WidgetBundleBuilder

struct · iOS 14.0+ · SDK 27.1

@resultBuilder struct WidgetBundleBuilder

A custom attribute that constructs a widget bundle's body. Use the `@WidgetBundleBuilder` attribute to group multiple widgets listed in the ``WidgetBundle/body-swift.property`` property of a widget bundle. For example, the following code defines a widget bundle that consists of two widgets. @main struct GameWidgets: WidgetBundle { @WidgetBundleBuilder var body: some Widget { GameStatusWidget() CharacterDetailWidget() } }

Members (0)

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

Skipped declarations

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

WidgetBundleBuilder.buildExpression(_:)

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

WidgetBundleBuilder.buildBlock()

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

WidgetBundleBuilder.buildBlock(_:)

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

WidgetBundleBuilder.buildBlock(_:)

Swift parameter packs cannot cross the bridge.

WidgetBundleBuilder.buildOptional(_:)

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

WidgetBundleBuilder.buildLimitedAvailability(_:)

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

WidgetBundleBuilder.buildExpression(_:)

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

WidgetBundleBuilder.buildLimitedAvailability(_:)

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

All SwiftUI types →