All Projects → juliensagot → JSSwitch

juliensagot / JSSwitch

Licence: MIT license
UISwitch lookalike, for macOS.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to JSSwitch

Bettersegmentedcontrol
An easy to use, customizable replacement for UISegmentedControl & UISwitch.
Stars: ✭ 1,782 (+7325%)
Mutual labels:  uiswitch
PMZSwitch
Yet another animated toggle
Stars: ✭ 116 (+383.33%)
Mutual labels:  uiswitch
NSSwitch
UISwitch for macOS.
Stars: ✭ 38 (+58.33%)
Mutual labels:  uiswitch

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].