Skip to content

Commit 42f2ae8

Browse files
committed
fix: Display checkbox labels
1 parent c513e50 commit 42f2ae8

File tree

2 files changed

+18
-6
lines changed

2 files changed

+18
-6
lines changed

Examples/Package.resolved

Lines changed: 13 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/SwiftCrossUI/Views/Toggle.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,11 @@ public struct Toggle: View {
2929
case .button:
3030
ToggleButton(label, active: active)
3131
case .checkbox:
32-
Checkbox(active: active)
32+
HStack {
33+
Text(label)
34+
35+
Checkbox(active: active)
36+
}
3337
}
3438
}
3539
}

0 commit comments

Comments
 (0)