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
Just because its fun, and also because apple introduced the NSSwitch but it's only supported for macOS 10.15+
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 🤓.
- Switch state transitions could be animated
- ???
I'm Rui Aureliano, iOS and macOS Engineer at Olá Brothers. We make Sip 🤓
Linkedin | AngelList | Twitter | Github | Medium | Stackoverflow