Latest | 2.0.1 |
---|---|
Homepage | https://github.com/sarath-vijay/SVColorPicker |
License | MIT |
Platforms | ios 10.0 |
Authors |
SVColorPicker is a lightweight color picker library written in swift. User will be presented with a slider and on sliding, user can select required color.
Requirements
- Xcode 8
- Swift 3
- iOS 10+
Installation
Using CocoaPods:
To integrate SVColorPicker into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!
target '<Your Target Name>' do
pod ’SVColorPicker’, '2.0.1'
end
Then, run the following command:
$ pod install
Manually:
- Download SVColorPicker.
- Drag and drop SVColorPicker directory to your project
Usage
For including color picker in your view, add the following code
let colorPickerframe = __REQUIRED_FRAME__
let colorPicker = ColorPickerView(frame: colorPickerframe)
colorPicker.colorChangeBlock = { color in
//Use color and do the requied.
}
self.view.addSubview(colorPicker)
Author
sarath, [email protected]
License
SVColorPicker is available under the MIT license. See the LICENSE file for more info.
Latest podspec
{ "name": "SVColorPicker", "version": "2.0.1", "summary": "A subclass of UIView wich privide a color picker slider for user.", "description": "TODO: This CocoaPods provide a color picker slider for user and user can move the slider point to required color position. A callback block is invoked during the slider position chang and the selected color value will be available as a param in callback block.", "homepage": "https://github.com/sarath-vijay/SVColorPicker", "license": { "type": "MIT", "file": "LICENSE" }, "authors": { "sarath": "[email protected]" }, "source": { "git": "https://github.com/sarath-vijay/SVColorPicker.git", "tag": "2.0.1" }, "platforms": { "ios": "10.0" }, "source_files": "SVColorPicker/Classes/**/*", "pushed_with_swift_version": "3" }
Sat, 25 Feb 2017 16:40:03 +0000