Giter Club home page Giter Club logo

swifthuecolorpicker's Introduction

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.

swifthuecolorpicker's People

Contributors

maximbilan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

swifthuecolorpicker's Issues

SliderImage change

I want to change the image of slider or transform 180 for saturation and alpha slider. Let me know how to achieve this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.