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

# Body

The type of view representing the body of this view.

## Declaration

```swift
associatedtype Body : View
```

## Discussion

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

## See Also

### Implementing a custom view

- [body](swiftui/view/body-8kl5o.md)
- [modifier(_:)](swiftui/view/modifier(_:).md)
- [Previews in Xcode](swiftui/previews-in-xcode.md)
