Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README.md

RGSColorSlider

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.

About

A simple color slider for iOS.

Resources

License

Packages

No packages published
You can’t perform that action at this time.