Good afternoon
I’ve seen an old thread here where a macOS style toggle switch was implemented but the links all expired…
Is there a way to create such a toggle switch?
Under SwiftUI it’s a breeze:
Toggle("", isOn: $settings.barcode)
.onChange(of: settings.barcode) { value in
defaults.set(value, forKey: "Barcode")
}
.toggleStyle(.switch)
I mean even Xojo uses it in the IDE though not that beautiful (o;
thanks in advance
richard