Latest 0.4.1
Homepage https://github.com/maximbilan/SwiftHUEColorPicker
License MIT
Platforms ios 8.0, requires ARC
Authors

SwiftHUEColorPicker

Version
License
Platform
CocoaPods
CocoaPods

iOS HUE color picker.

alt tag

Installation

CocoaPods:

pod 'SwiftHUEColorPicker'

Manual:

Copy SwiftHUEColorPicker.swift to your project.

Description

Supports two modes: horizontal and vertical.

alt tag

Also, you can change a saturation, a brightness and alpha values.

And control has customization. You can customize the label:

alt tag

Or appearance:



alt tag

Using

You can create from Storyboard or XIB. Or create manually:

let picker = SwiftHUEColorPicker()

For handling changing of values, you should implement protocol SwiftHUEColorPickerDelegate:

picker.delegate = self

func valuePicked(color: UIColor, type: SwiftHUEColorPicker.PickerType) {
}

Direction:

picker.direction = SwiftHUEColorPicker.PickerDirection.Vertical // Vertical, Horizontal

Type:

picker.type = SwiftHUEColorPicker.PickerType.Color // Color, Saturation, Brightness, Alpha

Please see example for using SwiftHUEColorPicker in this repository.

License

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

Latest podspec

{
    "name": "SwiftHUEColorPicker",
    "version": "0.4.1",
    "summary": "Swift HUE Color Picker",
    "description": "Simple iOS HUE color picker",
    "homepage": "https://github.com/maximbilan/SwiftHUEColorPicker",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "Maxim Bilan": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/maximbilan/SwiftHUEColorPicker.git",
        "tag": "0.4.1"
    },
    "source_files": [
        "Classes",
        "SwiftHUEColorPicker/Sources/**/*.{swift}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This