Initializer

init()

Creates a switch toggle style.

Declaration 宣言

init()

Discussion 議論

Don’t call this initializer directly. Instead, use the switch static variable to create this style:


Toggle("Enhance Sound", isOn: $isEnhanced)
    .toggleStyle(.switch)