ryanmcgrath / JSSwitch

UISwitch lookalike, for macOS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSSwitch

UISwitch lookalike, for macOS.

MIT License Platform macOS

Usage

To turn it on:

mySwitch.on = true
print(mySwitch.on) // true

To turn it off:

mySwitch.on = false
print(mySwitch.on) // false

Customization

You can customize the color by setting the tintColor property:

mySwitch.tintColor = NSColor.red

Requirements

  • Xcode 8
  • OS X 10.11

Integration

Download the .zip file and add JSSwitch.swift to your project.

About

UISwitch lookalike, for macOS.

License:MIT License


Languages

Language:Swift 100.0%