static var button: ButtonToggleStyle
A toggle style that displays as a button with its label as the title.
Available when
Self
is ButtonToggleStyle
.Availability 有効性
Technology
struct ButtonToggleStyle
Use the button
static variable to create this style:
Toggle(isOn: $isFlagged) {
Label("Flag", systemImage: "flag.fill")
}
.toggleStyle(.button)
static var button: ButtonToggleStyle
Self
is ButtonToggleStyle
.init()
func makeBody (configuration: ButtonToggleStyle .Configuration) -> some View
typealias Body
struct DefaultToggleStyle
struct CheckboxToggleStyle
struct SwitchToggleStyle