Contents

ButtonToggleStyle

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

Declaration

struct ButtonToggleStyle

Overview

You can also use button to construct this style.

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

Topics

Creating the toggle style

Supporting types

See Also

Supporting types