PMZSwitch 0.1.1

PMZSwitch 0.1.1

Maintained by Linus Geffarth.



PMZSwitch 0.1.1

PMZSwitch

CI Status Version License Platform

Made by

kovpas, inspired by Andrey Mironov's design

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift 4.2
  • iOS 9.3+
  • Xcode 9+

Installation

PMZSwitch is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'PMZSwitch'

Usage

To use PMZSwitch, simply drag a plain UIView into your storyboard. Then, set its class to PMZSwitch. Now you can define:

on: default state
thumbTintColor: thumb's tint color when on is actually off
onThumbTintColor: thumb's tint color when on is true
shadowColor: thumb's shadow color when on is true

Author

All credit goes to kovpas who made this repo. I updated the library's codebase to Swift 4 and published it on CocoaPods. linusgeffarth, [email protected]

License

PMZSwitch is available under the MIT license. See the LICENSE file for more info.