Fix macOS toggle style
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user