Skip to content
Swift95

Checkbox95

A binary option control backed by SwiftUI Toggle behavior.

Checkbox95 binds a Boolean value to a pixel checkmark and input-style indicator.

Checked, unchecked, and disabled Checkbox95 controls
The common checkbox states rendered by the snippet below.
import Swift95
import SwiftUI
struct Checkbox95Example: View {
@State private var showsHiddenFiles = true
@State private var confirmsDeletion = false
var body: some View {
VStack(alignment: .leading, spacing: 6) {
Checkbox95("Show hidden files", isOn: $showsHiddenFiles)
Checkbox95("Confirm before deleting", isOn: $confirmsDeletion)
Checkbox95("Unavailable option", isOn: .constant(true))
.disabled(true)
}
}
}
Concern Behavior
Binding Reads and writes a Binding<Bool>.
Semantics Preserves native toggle behavior, enabled state, keyboard use, and accessibility.
Custom labels Use Checkbox95(isOn:label:) for composed SwiftUI labels.
Native APIs Use swiftUI(_:) to modify the embedded Toggle.

Open the complete Checkbox95 API reference →