One Logo Pool Ball
SwiftUI · IOS API REFERENCE

DefaultToggleStyle

struct · iOS 13.0+ · SDK 27.1

nonisolated struct DefaultToggleStyle

The default toggle style. Use the ``ToggleStyle/automatic`` static variable to create this style: Toggle("Enhance Sound", isOn: $isEnhanced) .toggleStyle(.automatic)

Members (1)

init · iOS 13.0+

init

TypeScript
static init(): DefaultToggleStyle
Swift declaration
nonisolated init()

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

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

DefaultToggleStyle.makeBody(configuration:)

This protocol needs associated types that cannot yet cross the bridge.

All SwiftUI types →