Skip to content

iOS components Forms

StanceCheckbox

Stable

A checkbox with a label and description; iOS has no system checkbox, so it is exposed as a toggle.

  • PlatformiOS and iPadOS, SwiftUI
  • Builds onA custom Stance component
  • Kindview

Preview

Rendered by the SwiftUI library, not drawn by hand.

StanceCheckbox on iOS and iPadOSStanceCheckbox on iOS and iPadOSStanceCheckbox on iOS and iPadOS
StanceCheckbox, Light appearance
Light
StanceCheckbox, Dark appearance
Dark
StanceCheckbox, High contrast appearance
High contrast

Usage

swift
StanceCheckbox("Apply to new members", description: "Added later", isOn: $isOn)

Accessibility

  • Whole row is the 44pt target
  • Announces Checked or Not checked

On other platforms