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

# body

The contents of the command hierarchy.

## Declaration

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

## Discussion

Discussion For any commands that you create, provide a computed body property that defines the scene as a composition of other scenes. You can assemble a command hierarchy from built-in commands that SwiftUI provides, as well as other commands that you’ve defined.

## See Also

### Implementing commands

- [Body](swiftui/commands/body-swift.associatedtype.md)
