---
title: body
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/widgetbundle/body-swift.property
---

# body

Declares the group of widgets that an app supports.

## Declaration

```swift
@WidgetBundleBuilder @MainActor @preconcurrency var body: Self.Body { get }
```

## Discussion

Discussion The order that the widgets appear in this property determines the order they are shown to the user when adding a widget. The following example shows how to use a widget bundle builder to define a body showing a game status widget first and a character detail widget second: @main struct GameWidgets: WidgetBundle {    var body: some Widget {        GameStatusWidget()        CharacterDetailWidget()    } }

## See Also

### Implementing a widget bundle

- [Body](swiftui/widgetbundle/body-swift.associatedtype.md)
- [WidgetBundleBuilder](swiftui/widgetbundlebuilder.md)
