A simple color slider for iOS.
To run the example project, clone the repo, and run pod install from the Example directory first.
RGSColorSlider is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "RGSColorSlider"-(IBAction)sliderDidChange:(RGSColorSlider *)sender{
self.colorView.backgroundColor = sender.color;
}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.
RGSColorSlider is available under the MIT license. See the LICENSE file for more info.