Latest 0.1.0
Homepage https://github.com/markvaldy/MARKCircularSlider
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit
Authors

Version
License
Platform

A custom reusable circular slider control. Values range is between minimumValue and maximumValue (from 0 to 1 by default).

Please check Demo project for a basic example on how to use MARKCircularSlider.

Demo

Alt text

Available control properties

  • value – the current value of the slider
  • minimumValue – the minimum value of the slider’s range
  • maximumValue – the maximum value of the slider’s range

Available styling properties

Customizable colors:

  • filledColor – color of the filled area
  • unfilledColor – color of the unfilled area

Usage

In your View Controller

- (void)viewDidLoad
{
    // ...
    self.slider = [[MARKCircularSlider alloc] initWithFrame:CGRectZero];
    self.slider.filledColor = [UIColor blueColor];
    self.slider.unfilledColor = [UIColor lightGrayColor];
    self.slider.minimumValue = 0;
    self.slider.maximumValue = 72;
    self.slider.value = 10;

    [self.slider addTarget:self
                         action:@selector(sliderValueDidChange:)
               forControlEvents:UIControlEventValueChanged];

    [self.view addSubview:self.slider];
    // ...
}

- (void)sliderValueDidChange:(MARKCircularSlider *)slider
{
    NSLog(@"%0.2f", slider.value);
}

Installation

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

pod 'MARKCircularSlider'

Author

Vadym Markov, [email protected]

License

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

Latest podspec

{
    "name": "MARKCircularSlider",
    "version": "0.1.0",
    "summary": "An easy-to-use circular slider",
    "homepage": "https://github.com/markvaldy/MARKCircularSlider",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "Vadym Markov": "[email protected]"
    },
    "social_media_url": "https://twitter.com/markvaldy",
    "source": {
        "git": "https://github.com/markvaldy/MARKCircularSlider.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "frameworks": "UIKit",
    "source_files": "Source/**/*.{h,m}"
}

Pin It on Pinterest

Share This