init()
Creates a default toggle style.
Declaration
init()Discussion
Don’t call this initializer directly. Instead, use the automatic static variable to create this style:
Toggle("Enhance Sound", isOn: $isEnhanced)
.toggleStyle(.automatic)Creates a default toggle style.
init()Don’t call this initializer directly. Instead, use the automatic static variable to create this style:
Toggle("Enhance Sound", isOn: $isEnhanced)
.toggleStyle(.automatic)