SwitchToggleStyle
A toggle style that displays a leading label and a trailing switch.
Declaration
struct SwitchToggleStyleOverview
Use the switch static variable to create this style:
Toggle("Enhance Sound", isOn: $isEnhanced)
.toggleStyle(.switch)