---
title: CheckboxToggleStyle
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/checkboxtogglestyle
---

# CheckboxToggleStyle

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

## Declaration

```swift
nonisolated struct CheckboxToggleStyle
```

## Overview

Overview Use the checkbox static variable to create this style: Toggle("Close windows when quitting an app", isOn: $doesClose)     .toggleStyle(.checkbox)

## Topics

### Creating the toggle style

- [init()](swiftui/checkboxtogglestyle/init().md)

### Supporting types

- [makeBody(configuration:)](swiftui/checkboxtogglestyle/makebody(configuration:).md)

## Relationships

### Conforms To

- [ToggleStyle](swiftui/togglestyle.md)

## See Also

### Supporting types

- [DefaultToggleStyle](swiftui/defaulttogglestyle.md)
- [ButtonToggleStyle](swiftui/buttontogglestyle.md)
- [SwitchToggleStyle](swiftui/switchtogglestyle.md)
