---
title: Body
framework: swiftui
role: symbol
role_heading: Associated Type
path: swiftui/togglestyle/body
---

# Body

A view that represents the appearance and interaction of a toggle.

## Declaration

```swift
associatedtype Body : View
```

## Discussion

Discussion SwiftUI infers this type automatically based on the View instance that you return from your implementation of the makeBody(configuration:) method.

## See Also

### Creating custom toggle styles

- [makeBody(configuration:)](swiftui/togglestyle/makebody(configuration:).md)
- [ToggleStyleConfiguration](swiftui/togglestyleconfiguration.md)
- [ToggleStyle.Configuration](swiftui/togglestyle/configuration.md)
