Skip to content

iOS components Forms

StanceToggleStyle

Stable

Stance colours for the native Toggle switch, keeping system behaviour and accessibility.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onToggle
  • Kindstyle

Preview

Rendered by the SwiftUI library, not drawn by hand.

StanceToggleStyle on iOS and iPadOSStanceToggleStyle on iOS and iPadOSStanceToggleStyle on iOS and iPadOS
StanceToggleStyle, Light appearance
Light
StanceToggleStyle, Dark appearance
Dark
StanceToggleStyle, High contrast appearance
High contrast

Usage

swift
Toggle("Auto-deploy", isOn: $isOn).toggleStyle(.stance)

Accessibility

  • Native switch semantics and haptics

On other platforms