---
title: "CheckboxToggleStyle | Explore SwiftUI"
description: "A toggle style that displays a checkbox followed by its label. Learn how to use CheckboxToggleStyle in SwiftUI with visual code examples."
canonical_url: "https://exploreswiftui.com/library/toggle/checkboxtogglestyle"
meta:
  author: "Explore SwiftUI"
  "og:description": "A toggle style that displays a checkbox followed by its label. Learn how to use CheckboxToggleStyle in SwiftUI with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_CheckboxToggleStyle%2Cdescription_A%2Btoggle%2Bstyle%2Bthat%2Bdisplays%2Ba%2Bcheckbox%2Bfollowed%2Bby%2Bits%2Blabel.%2Ccategory_Toggle%2Cimage_~L2FwaS9pbWFnZXMvMjEyL3ZhcmlhbnRzLzYyMj92PTE3OTAwNzM0Nzg4NDImcj0yJnc9NjQwJmg9NDgwJmY9cG5n%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~ZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMXB4IHJnYmEoMCwwLDAsMC4wNikpIGRyb3Atc2hhZG93KDAgLTEwcHggMjVweCByZ2JhKDM3LDk5LDIzNSwwLjE4KSk7%2Cprops_eyJwbGF0Zm9ybXMiOlsibWFjT1MiXX0%2Cp_Ii9saWJyYXJ5L3RvZ2dsZS9jaGVja2JveHRvZ2dsZXN0eWxlIg%2Cs_M7GBy-PSYmfjeeFe.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "CheckboxToggleStyle | Explore SwiftUI"
  "twitter:description": "A toggle style that displays a checkbox followed by its label. Learn how to use CheckboxToggleStyle in SwiftUI with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_CheckboxToggleStyle%2Cdescription_A%2Btoggle%2Bstyle%2Bthat%2Bdisplays%2Ba%2Bcheckbox%2Bfollowed%2Bby%2Bits%2Blabel.%2Ccategory_Toggle%2Cimage_~L2FwaS9pbWFnZXMvMjEyL3ZhcmlhbnRzLzYyMj92PTE3OTAwNzM0Nzg4NDImcj0yJnc9NjQwJmg9NDgwJmY9cG5n%2CimageMode_fit%2CimagePosition_center%2CimageFrame_~ZmlsdGVyOiBkcm9wLXNoYWRvdygwIDAgMXB4IHJnYmEoMCwwLDAsMC4wNikpIGRyb3Atc2hhZG93KDAgLTEwcHggMjVweCByZ2JhKDM3LDk5LDIzNSwwLjE4KSk7%2Cprops_eyJwbGF0Zm9ybXMiOlsibWFjT1MiXX0%2Cp_Ii9saWJyYXJ5L3RvZ2dsZS9jaGVja2JveHRvZ2dsZXN0eWxlIg%2Cs_M7GBy-PSYmfjeeFe.png"
  "twitter:title": "CheckboxToggleStyle | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

# **CheckboxToggleStyle**

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

![CheckboxToggleStyle - Preview Not Available](https://exploreswiftui.com/api/images/212/variants/622?v=1790073478842&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

macOS 10.15+

### **Tags**

### **SwiftUI Code**

[ Docs](https://developer.apple.com/documentation/swiftui/checkboxtogglestyle)

```
@State var isOn = false

var body: some View {
    List {
        Toggle("Foo1", isOn: $isOn)
        Toggle("Foo2", image: .cats24X24, isOn: $isOn)
        Toggle("Foo3", systemImage: "star", isOn: $isOn)
        Toggle(isOn: $isOn) {
            Label("Foo4", systemImage: "star")
            Text("Bar")
        }
        Toggle("Foo5", isOn: .constant(true))
    }
    .toggleStyle(.checkbox)
}
```

### **Found an issue or have a suggestion?**

Created: July 5, 2026Updated: July 5, 2026

### **More Toggle Components **

[**View all **](https://exploreswiftui.com/library/toggle)

![SwitchToggleStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/211/variants/640?v=1790073478842&r=2&w=412&q=75&f=webp)

### **SwitchToggleStyle**

A toggle style that displays a leading label and a trailing switch.

![ButtonToggleStyle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/210/variants/635?v=1790073478842&r=2&w=412&q=75&f=webp)

### **ButtonToggleStyle**

A toggle style that displays as a button with its label as the title.

![Multiple Sources Toggle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/209/variants/633?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Multiple Sources Toggle**

Creates a toggle that updates the selected property for all sources. Once toggled, all sources will have the same value.

![Toggle - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/208/variants/624?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Toggle**

Creates a toggle with title, image, systemImage, and custom label.

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

![Refreshable List - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/126/variants/359?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Refreshable List**

Marks this view as refreshable.

![Picker Section - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/178/variants/544?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Picker Section**

A Section inside a Picker

![Button Sizing - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/190/variants/3?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Button Sizing**

The preferred sizing behavior of buttons in the view hierarchy.

![Disclosure Group - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/131/variants/363?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Disclosure Group**

A view that shows or hides another content view, based on the state of a disclosure control.

![ShareLink - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/74/variants/28?v=1790073478842&r=2&w=412&q=75&f=webp)

### **ShareLink**

A view that controls a sharing presentation

![Prioritize Sheet Content Scrolling - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/141/variants/466?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Prioritize Sheet Content Scrolling**

Configures the behavior of swipe gestures on a presentation. PresentationContentInteraction.scrolls prioritizes scrolling the content over resizing the sheet.

![Glass Effect Container - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/96/variants/377?v=1794863958859&r=2&w=412&q=75&f=webp)

### **Glass Effect Container**

A view that combines multiple Liquid Glass shapes into a single shape that can morph individual shapes into one another

![Labeled Content - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/150/variants/492?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Labeled Content**

Creates a labeled informational view.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle#webpage","@type":"WebPage","dateModified":"2026-07-05T15:24:41.067Z","datePublished":"2026-07-05T15:24:41.067Z","description":"A toggle style that displays a checkbox followed by its label. Learn how to use CheckboxToggleStyle in SwiftUI with visual code examples.","name":"CheckboxToggleStyle","url":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle","breadcrumb":{"@id":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle#article"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/toggle/checkboxtogglestyle"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle#article","citation":"https://developer.apple.com/documentation/swiftui/checkboxtogglestyle","dateModified":"2026-07-05T15:24:41.067Z","datePublished":"2026-07-05T15:24:41.067Z","description":"A toggle style that displays a checkbox followed by its label. Learn how to use CheckboxToggleStyle in SwiftUI with visual code examples.","headline":"CheckboxToggleStyle","inLanguage":"en-US","name":"CheckboxToggleStyle","thumbnailUrl":"https://exploreswiftui.com/api/images/212/variants/622?v=1790073478842&r=2","url":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"hasPart":{"@id":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle#source-code"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@id":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle#webpage"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle#source-code","@type":"SoftwareSourceCode","codeSampleType":"full example","description":"A toggle style that displays a checkbox followed by its label. Learn how to use CheckboxToggleStyle in SwiftUI with visual code examples.","name":"CheckboxToggleStyle SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"@State var isOn = false\n\nvar body: some View {\n    List {\n        Toggle(\"Foo1\", isOn: $isOn)\n        Toggle(\"Foo2\", image: .cats24X24, isOn: $isOn)\n        Toggle(\"Foo3\", systemImage: \"star\", isOn: $isOn)\n        Toggle(isOn: $isOn) {\n            Label(\"Foo4\", systemImage: \"star\")\n            Text(\"Bar\")\n        }\n        Toggle(\"Foo5\", isOn: .constant(true))\n    }\n    .toggleStyle(.checkbox)\n}","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"Toggle"},{"@type":"Thing","name":"CheckboxToggleStyle"}]},{"@id":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"Toggle","item":"https://exploreswiftui.com/library/toggle","position":2},{"@type":"ListItem","name":"CheckboxToggleStyle","item":"https://exploreswiftui.com/library/toggle/checkboxtogglestyle","position":3}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/212/variants/622?v=1790073478842&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/212/variants/622?v=1790073478842&r=2"}]}
```