Latest 1.1.1
Homepage https://github.com/johankasperi/SwiftHSVColorPicker
License MIT
Platforms ios 8.0, requires ARC
Authors

Description

alt tag
Simple HSV Color Picker for iOS made in Swift. Includes a Hue and Saturation wheel, Brightness slider and a UIView for displaying the selected color.

Installation

Manual:

Copy the contents of "Source" to your project.

CocoaPods:

pod 'SwiftHSVColorPicker'

How to use

Add a UIView of subclass "SwiftHSVColorPicker" to your storyboard or create it programmatically:

let colorPicker = SwiftHSVColorPicker(frame: CGRectMake(10, 20, 300, 400))
self.view.addSubview(colorPicker)

After adding the Color Picker to your project, initialize your SwiftHSVColorPicker by calling:

colorPicker.setViewColor(UIColor.redColor())

This will create all the objects of the Color Picker and set they’re initial value to red.

Example project

Please download and run "SwiftHSVColorPickerExample" for example usage.

License

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

Author

Johan Kasperi
@johankasperi
kspri.se

Latest podspec

{
    "name": "SwiftHSVColorPicker",
    "version": "1.1.1",
    "summary": "Swift HSV Color Picker",
    "description": "A HSV Color Picker for iOS including a color wheel, brightness slider and a view for the selected color.",
    "homepage": "https://github.com/johankasperi/SwiftHSVColorPicker",
    "license": "MIT",
    "authors": {
        "Johan Kasperi": "[email protected]"
    },
    "social_media_url": "https://twitter.com/johankasperi",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/johankasperi/SwiftHSVColorPicker.git",
        "tag": "1.1.1"
    },
    "source_files": [
        "Classes",
        "Source/**/*.{swift}"
    ],
    "requires_arc": true,
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This