One Logo Pool Ball
SwiftUI · IOS API REFERENCE

WidgetBundle

protocol · iOS 14.0+ · SDK 27.1

@MainActor @preconcurrency protocol WidgetBundle

A container used to expose multiple widgets from a single widget extension. To support multiple types of widgets, add the `@main` attribute to a structure that conforms to `WidgetBundle`. For example, a game might have one widget to display summary information about the game and a second widget to display detailed information about individual characters. @main struct GameWidgets: WidgetBundle { 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

No declarations were skipped in this snapshot.

All SwiftUI types →