A toggle style that displays as a button with its label as the title.
You can also use ``ToggleStyle/button`` to construct this style.
Toggle(isOn: $isFlagged) {
Label("Flag", systemImage: "flag.fill")
}
.toggleStyle(.button)
Members (1)
init · iOS 15.0+
init
TypeScript
static init(): ButtonToggleStyle
Swift declaration
nonisolated init()
Creates a button toggle style.
Don't call this initializer directly. Instead, use the
``ToggleStyle/button`` static variable to create this style:
Toggle(isOn: $isFlagged) {
Label("Flag", systemImage: "flag.fill")
}
.toggleStyle(.button)
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
ButtonToggleStyle.makeBody(configuration:)
This protocol needs associated types that cannot yet cross the bridge.