Skip to content

ruiaureliano/Switcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🖥 Switcher for macOS


Switcher is intended to be the simplest way to add the "Switch" control for macOS app, supporting older versions like macOS 10.13 or macOS 10.14

Why?

Just because its fun, and also because apple introduced the NSSwitch but it's only supported for macOS 10.15+

Features?

Again just for fun, I used things like @IBInspectable and @IBDesignable, which is way cool 😎 because with that we can define a way to set state, onTint, offTint directly via StoryBoard/Xib and the most awesome thing is we can see a live preview instantly 🤓.

Switcher preview in light mode


Switcher preview in dark mode


Switcher preview in dark mode with some custom tint colors


Improvements?

  1. Switch state transitions could be animated
  2. ???

I'm Rui Aureliano, iOS and macOS Engineer at Olá Brothers. We make Sip 🤓

Linkedin | AngelList | Twitter | Github | Medium | Stackoverflow

About

Switcher is intended to be the simplest way to add the "Switch" control for macOS app, supporting older versions like macOS 10.13 or macOS 10.14

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages