<!--
{
  "availability" : [
    "macOS: 10.15.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/CheckboxToggleStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI19CheckboxToggleStyleV"
  },
  "title" : "CheckboxToggleStyle"
}
-->

# CheckboxToggleStyle

A toggle style that displays a checkbox followed by its label.

```
nonisolated struct CheckboxToggleStyle
```

## Overview

Use the [`checkbox`](/documentation/SwiftUI/ToggleStyle/checkbox) static variable to create this style:

```
Toggle("Close windows when quitting an app", isOn: $doesClose)
    .toggleStyle(.checkbox)
```

## Topics

### Creating the toggle style

[`init()`](/documentation/SwiftUI/CheckboxToggleStyle/init())

Creates a checkbox toggle style.

### Supporting types

[`makeBody(configuration:)`](/documentation/SwiftUI/CheckboxToggleStyle/makeBody(configuration:))

Creates a view that represents the body of a toggle 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)