📦 SwiftyLaunch Modules
🔗 SharedKit
🎨 UI Elements, Styles
Checkmark Toggle Style

Checkmark Toggle Style (CheckToggleStyle())

SharedKit (SwiftyLaunch Module) - Checkmark Toggle Style

You can turn any SwiftUI Toggle into a checkmark toggle by applying the CheckToggleStyle().

Toggle("Checkmark Toggle", isOn: $isChecked)
    .toggleStyle(CheckToggleStyle())
    .font(.largeTitle)

Checkmark Style Toggle

It doesn't take any arguments as inputs and is stylized using app's accent color.

You can also use the Checkmark View independently by calling CheckmarkToggle directly.

CheckmarkToggle(checked: Bool, onToggle: @escaping (() -> Void) = {})
  • checked: A boolean value to determine if the toggle is checked or not.
  • onToggle: A closure that is called when the checkmark is tapped.