Skip to content

ryanmcgrath/JSSwitch

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
This branch is 2 commits ahead of juliensagot:master.

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

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.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%