SweetUI

Search items

Jump to an item

component

checkbox

Styles Toggle as checkbox; preserves binding, label, state.

checkboxtoggleselectionformstyle
checkbox, light

On iPad

The same installed source at a regular width. It adapts its layout without a separate design.

checkbox on iPad, light

Install

With the sweetui tool (brew install mangobyte-dev/tap/sweetui):

sweetui install checkbox --destination Sources/YourFeature/Components

Installs in order: checkbox 0.3.2. Point --destination at a folder inside the consuming target's sources.

Usage

@State private var accepted = false

Toggle("Accept terms", isOn: $accepted)
    .toggleStyle(.registryCheckbox)

Accessibility contract

  • Toggle: accessibility representation.
  • MUST have visible label; preserves enabled state.
  • 44-point minimum row height; not color-only.
  • Label, glyph, box scale with Dynamic Type, direction.
  • iPad: hoverEffect keeps pointer effect; button lacks it.

Details

Kindcomponent
Version0.3.2
PlatformsiOS 26.0+
Dependenciesnone
SourceRegistry/sources/components/RegistryCheckboxToggleStyle.swift
Xcode previewCheckbox