Latest 0.1.1
Homepage https://github.com/RGSSoftware/RGSColorSlider
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

A simple color slider for iOS.

iPhone 5

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

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

pod "RGSColorSlider"

Using RGSColorSlider

-(IBAction)sliderDidChange:(RGSColorSlider *)sender{
    self.colorView.backgroundColor = sender.color;
}

Customization

RGSColorSlider can be customized via the following @properties

@property (nonatomic, strong)UIColor *color;

@property (nonatomic)int previewOffset; //negative moves up, positive moves down
@property (nonatomic)BOOL showPreview;

@property (nonatomic, )float previewAppearAnimateDuration;
@property (nonatomic, )float previewDismissAnimateDuration;

@property (nonatomic)int colorTrackHeight;

Limitation

RGSColorSlider only supports hue, therefor it doesn’t support saturation and brightness viewing or picking.

License

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

Latest podspec

{
    "name": "RGSColorSlider",
    "version": "0.1.1",
    "summary": "A simple color slider for iOS.",
    "description": "A simple, reusable color slider for iOS.",
    "homepage": "https://github.com/RGSSoftware/RGSColorSlider",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Randel Smith": "[email protected]"
    },
    "source": {
        "git": "https://github.com/RGSSoftware/RGSColorSlider.git",
        "tag": "0.1.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "RGSColorSlider/Classes/**/*",
    "resource_bundles": {
        "RGSColorSlider": [
            "RGSColorSlider/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This