Latest 0.0.1
Homepage https://github.com/NilStack/NKSwitch
License MIT
Platforms ios 8.0, requires ARC
Authors

Build
Verision
License

A simple switch inspired by https://dribbble.com/shots/2309834-Yet-another-toggle-animation. It’s not exactly the same as the original design and i’m trying to make it more elegant.

gif

Usage

Cocoapods

 pod 'NKSwitch'

Copy NKSwitch folder to your project

Examples

Please see the demo.

TODO

  • make animation better

License

This code is distributed under the terms and conditions of the MIT license.

Thanks

Awesome design by Andrew

TKSwitcherCollection by TBXark

Latest podspec

{
    "name": "NKSwitch",
    "version": "0.0.1",
    "summary": "A simple switch inspired by https://dribbble.com/shots/2309834-Yet-another-toggle-animation.",
    "description": "A simple switch control inspired by https://dribbble.com/shots/2309834-Yet-another-toggle-animation.",
    "homepage": "https://github.com/NilStack/NKSwitch",
    "screenshots": "https://db.tt/s6vMQYiN",
    "license": "MIT",
    "authors": {
        "Peng Guo": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/NilStack/NKSwitch.git",
        "tag": "0.0.1"
    },
    "source_files": "NKSwitch/*.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This