---
title: Body
framework: swiftui
role: symbol
role_heading: Associated Type
path: swiftui/commands/body-swift.associatedtype
---

# Body

The type of commands that represents the body of this command hierarchy.

## Declaration

```swift
associatedtype Body : Commands
```

## Discussion

Discussion When you create custom commands, Swift infers this type from your implementation of the required body property.

## See Also

### Implementing commands

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