Latest 0.0.2
Homepage https://github.com/blurryssky/BSAnnularSlider
License MIT
Platforms ios 8.0
Authors

Just an annular slider! inherit from UIControl

Overview

BSAnnularSlider.gif

Installation

use_frameworks!

pod ‘BSAnnularSlider’

Usage

Pretty simple

@IBOutlet weak var annularSlider: BSAnnularSlider! {
        didSet {
            annularSlider.backgroundColor = UIColor.clearColor()
            annularSlider.thumbImage = UIImage(named: "thumb")

            //optional
            //if the thumb image is too small, you can set this to exten responds area
            annularSlider.extendRespondsDistance = 10
            //cannot set more than maxRadius
            annularSlider.radius = 200

            annularSlider.addTarget(self, action: #selector(ViewController.respondsToSliderValueChanged(_:)), forControlEvents: UIControlEvents.ValueChanged)
            annularSlider.addTarget(self, action: #selector(ViewController.respondsToSliderTouchUp(_:)), forControlEvents: UIControlEvents.TouchUpInside)

        }
    }
@end

Latest podspec

{
    "name": "BSAnnularSlider",
    "version": "0.0.2",
    "summary": "Just an annular slider! inherit from UIControl",
    "description": "Just an ult annular slider! inherit from UIControl",
    "homepage": "https://github.com/blurryssky/BSAnnularSlider",
    "license": "MIT",
    "authors": {
        "blurryssky": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/blurryssky/BSAnnularSlider.git",
        "tag": "0.0.2"
    },
    "source_files": [
        "BSAnnularSlider",
        "BSAnnularSliderSample/BSAnnularSlider/*"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This