RGSColorSlider
A simple color slider for iOS.
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.