init
TypeScriptstatic initTint(tint: _SwiftUICore_Color): SwitchToggleStyleSwift declarationnonisolated init(tint: Color)Creates a switch style with a tint color.
struct · iOS 13.0+ · SDK 27.1
nonisolated struct SwitchToggleStyleA toggle style that displays a leading label and a trailing switch. Use the ``ToggleStyle/switch`` static variable to create this style: Toggle("Enhance Sound", isOn: $isEnhanced) .toggleStyle(.switch)
static initTint(tint: _SwiftUICore_Color): SwitchToggleStyleSwift declarationnonisolated init(tint: Color)Creates a switch style with a tint color.
static init(): SwitchToggleStyleSwift declarationnonisolated init()Creates a switch toggle style. Don't call this initializer directly. Instead, use the ``ToggleStyle/switch`` static variable to create this style: Toggle("Enhance Sound", isOn: $isEnhanced) .toggleStyle(.switch)
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
SwitchToggleStyle.makeBody(configuration:)
This protocol needs associated types that cannot yet cross the bridge.