<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/CheckboxToggleStyle/makeBody(configuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI19CheckboxToggleStyleV8makeBody13configurationQrAA0dE13ConfigurationV_tF"
  },
  "title" : "makeBody(configuration:)"
}
-->

# makeBody(configuration:)

Creates a view that represents the body of a toggle checkbox.

```
nonisolated func makeBody(configuration: CheckboxToggleStyle.Configuration) -> some View
```

## Parameters

`configuration`

The properties of the toggle, including a
label and a binding to the toggle’s state.

## Return Value

A view that represents a checkbox.

## Discussion

SwiftUI implements this required method of the [`ToggleStyle`](/documentation/SwiftUI/ToggleStyle)
protocol to define the behavior and appearance of the
[`checkbox`](/documentation/SwiftUI/ToggleStyle/checkbox) toggle style. Don’t call this method
directly. Rather, the system calls this method for each
[`Toggle`](/documentation/SwiftUI/Toggle) instance in a view hierarchy that’s styled as
a checkbox.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)