UISwitch lookalike, for macOS.
To turn it on:
mySwitch.on = true
print(mySwitch.on) // trueTo turn it off:
mySwitch.on = false
print(mySwitch.on) // falseYou can customize the color by setting the tintColor property:
mySwitch.tintColor = NSColor.red- Xcode 8
 - OS X 10.11
 
Download the .zip file and add JSSwitch.swift to your project.
