static var `switch`: SwitchToggleStyle
A toggle style that displays a leading label and a trailing switch.
あるトグルスタイル、それは先頭のラベルと後続のスイッチを表示します。
Available when
Self
is SwitchToggleStyle
.Availability 有効性
Technology
struct SwitchToggleStyle
Use the switch
static variable to create this style:
Toggle("Enhance Sound", isOn: $isEnhanced)
.toggleStyle(.switch)
static var `switch`: SwitchToggleStyle
Self
is SwitchToggleStyle
.init()
func makeBody (configuration: SwitchToggleStyle .Configuration) -> some View
typealias Body
struct DefaultToggleStyle
struct ButtonToggleStyle
struct CheckboxToggleStyle