Latest 0.1.0
Homepage https://github.com/culumn/ColorPicker
License MIT
Platforms ios 9.0
Authors

ColorPicker

CI Status Version License Platform

This is the simple color picker for iOS.

Usage

class ViewController: UIViewController, ColorPickerViewDelegate {

    @IBOutlet weak var colorPicker: ColorPickerView!

    override func viewDidLoad() {
        super.viewDidLoad()

        // Set delegate of color picker
        colorPicker.delegate = self
    }

    func colorPickerDidSelectColor(_ colorPicker: ColorPickerView) {
      // Can get the selected color from the color picker
      let color = colorPicker.selectedColor
    }
}

Example

To run the example project, open the Example/Example.xcworkspace.

Installation

CocoaPods

ColorPicker is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'ColorPicker'

Carthage

Add the following line to your Cartfile:

github "culumn/ColorPicker"

Requirements

iOS 9.0+
Xcode 10.0
Swift 4.2

Author

culumn, @culumn

License

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

Latest podspec

{
    "name": "CULColorPicker",
    "version": "0.1.0",
    "summary": "A short description of ColorPicker.",
    "description": "This is the color picker for iOS.",
    "homepage": "https://github.com/culumn/ColorPicker",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "culumn": "[email protected]"
    },
    "source": {
        "git": "https://github.com/culumn/ColorPicker.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/Yoshi64190101",
    "platforms": {
        "ios": "9.0"
    },
    "swift_version": "4.2",
    "source_files": "ColorPicker/**/*.{swift}"
}

Pin It on Pinterest

Share This