Latest 0.1.1
Homepage https://github.com/linusgeffarth/PMZSwitch
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

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.

Latest podspec

{
    "name": "PMZSwitch",
    "version": "0.1.1",
    "summary": "Yet another animated toggle - made by kovpas",
    "description": "Yet another animated toggle made by kovpas, inspired by Andrey Mironov",
    "homepage": "https://github.com/linusgeffarth/PMZSwitch",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "linusgeffarth": "[email protected]"
    },
    "source": {
        "git": "https://github.com/linusgeffarth/PMZSwitch.git",
        "tag": "0.1.1"
    },
    "social_media_url": "https://twitter.com/linusgeffarth",
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.2",
    "source_files": "PMZSwitch/Classes/*.swift",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This