ButtonToggleStyle
A toggle style that displays as a button with its label as the title.
Declaration
struct ButtonToggleStyleOverview
You can also use button to construct this style.
Toggle(isOn: $isFlagged) {
Label("Flag", systemImage: "flag.fill")
}
.toggleStyle(.button)