Fix macOS toggle style

This commit is contained in:
世界 committed 2026-02-01 18:45:43 +08:00
1 parent 38e8b3eda9
commit f97857e590
1 file changed
+3
@@ -24,6 +24,9 @@ public struct HTTPProxyCard: View {
Spacer()
Toggle("", isOn: $systemProxyEnabled)
.labelsHidden()
#if os(macOS)
.toggleStyle(.switch)
#endif
.onChangeCompat(of: systemProxyEnabled) { newValue in
Task {
await onToggle(newValue)