<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ButtonToggleStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17ButtonToggleStyleV"
  },
  "title" : "ButtonToggleStyle"
}
-->

# ButtonToggleStyle

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

```
nonisolated struct ButtonToggleStyle
```

## Overview

You can also use [`button`](/documentation/SwiftUI/ToggleStyle/button) to construct this style.

```
Toggle(isOn: $isFlagged) {
    Label("Flag", systemImage: "flag.fill")
}
.toggleStyle(.button)
```

## Topics

### Creating the toggle style

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

Creates a button toggle style.

### Supporting types

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

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



---

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)