Latest 1.1
Homepage https://github.com/rehatkathuria/SnappingSlider
License MIT
Platforms ios 8.0, requires ARC
Authors

A beautiful slider control for iOS.

Look at that beauty!

Installation

There are two ways to add the control to your project; you can add it as a submodule if you’re using GIT as a versioning system or you can install it through CocoaPods. Examples of both are outlined below.

git submodule add https://github.com/rehatkathuria/SnappingSlider

pod "SnappingSlider"

Usage

It’s simple, really. In essence, all you need to do is instantiate a slider with a title and conform to the delegate offered.

let slider = SnappingSlider(frame: CGRectMake(0.0, 0.0, 10.0, 10.0), title: "Slide Me")
slider.delegate = self

myAwesomeViewController.view.addSubView = slider

...

func snappingSliderDidIncrementValue(snapSwitch: SnappingSlider) {

}

func snappingSliderDidDecrementValue(snapSwitch: SnappingSlider) {

}

Author

This control has been open-sourced by Rehat Kathuria. You can follow him on twitter, here, and hire him for freelance projects, here.

License & Other Boring Stuff

Licensed under MIT. If you use the control somewhere, do let me know. I’d love to see it out in the wild.

Latest podspec

{
    "name": "SnappingSlider",
    "version": "1.1",
    "summary": "A beautiful slider control for iOS built purely upon Swift.",
    "description": "                   A slider control built upon UIKitDynamic using Swift. Simple and effecient. n",
    "homepage": "https://github.com/rehatkathuria/SnappingSlider",
    "screenshots": "http://i.imgur.com/D6IsT2r.gif",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Rehat Kathuria": "[email protected]"
    },
    "social_media_url": "http://twitter.com/itskathuria",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/rehatkathuria/SnappingSlider.git",
        "tag": "1.1"
    },
    "source_files": "SnappingSlider/SnappingSlider.swift",
    "requires_arc": true
}

Pin It on Pinterest

Share This