Latest 1.1.2
Homepage https://github.com/taglia3/CircularSlider
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

A powerful Circular Slider. It’s written in Swift, it’s 100% IBDesignable and all parameters are IBInspectable.

Demo

Slider demo

Installation

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

Swift 3:

pod 'CircularSlider'

Swift 2.2:

pod 'CircularSlider' ', '~> 0.2'

Usage

You can use this slider by declaring programmatically or by placing it in your Storyboard file.
All the paramters are IBInspectable, so you can configure the slider directly in the Storyboard file (in the attribute inspector tab) without write any line of code!

CircularSlider
CircularSlider

Delegate

Optionally you can conforms to the methods of the CircularSliderDelegate protocol.

If you want to admit only certain values you can implement this methods:

optional func circularSlider(circularSlider: CircularSlider, valueForValue value: Float) -> Float

With this method you override the actual slider value before the slider is updated.
Example: you want only rounded values:

func circularSlider(circularSlider: CircularSlider, valueForValue value: Float) -> Float {
return floorf(value)
}

The other methods you can implement are:

optional func circularSlider(circularSlider: CircularSlider, didBeginEditing textfield: UITextField)
optional func circularSlider(circularSlider: CircularSlider, didEndEditing textfield: UITextField)

Author

taglia3, [email protected]

LinkedIn, Matteo Tagliafico

License

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

Latest podspec

{
    "name": "CircularSlider",
    "version": "1.1.2",
    "summary": "A powerful Circular Slider",
    "description": "A powerful Circular Slider. It's written in Swift, it's 100% IBDesignable and all parameters are IBInspectable.",
    "homepage": "https://github.com/taglia3/CircularSlider",
    "license": "MIT",
    "authors": {
        "taglia3": "[email protected]"
    },
    "source": {
        "git": "https://github.com/taglia3/CircularSlider.git",
        "tag": "1.1.2"
    },
    "social_media_url": "https://twitter.com/taglia3",
    "source_files": "CircularSlider/Classes/**/*",
    "frameworks": "UIKit",
    "platforms": {
        "ios": "8.0"
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This