Giter Site home page Giter Site logo

huekit's Introduction

HueKit for iOS

Build Status
Swift Pod Version Carthage Compatible Platform: iOS
Twitter Donate via PayPal

HueKit for iOS

About

HueKit is a UI framework for iOS that provides components and utilities for building color pickers. Since each app may want a custom color picker, the design of this framework is geared towards reusability and allows for great customization.

Components

All components are marked open, so they can be subclassed. Also, all components are marked @IBDesignable, so they can be previewed in Interface Builder. Components that provide user interaction are subclassed from UIControl, you can observe a change in value by using @IBAction.

ColorBarPicker

ColorBarView

ColorIndicatorView

ColorSquarePicker

ColorSquareView

SourceColorView

Installation

To install, add the following line to your Podfile:

pod 'HueKit', '~> 1.0'

To install, add the following line to your Cartfile:

github "louisdh/huekit" ~> 1.0

Run carthage update to build the framework and drag the built HueKit.framework into your Xcode project.

Requirements

  • iOS 10.0+
  • Xcode 9.3+

Todo

  • Add tests
  • Add documentation

License

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

huekit's People

Contributors

louisdh 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

huekit's Issues

ColorIndicators Not visible

OS :- 10.3
xcode:- 10.0
Swift:- 4

I made my view as ColorBarPicker and when I touch at any spot the bar is responding and color is getting updated but the ColorIndicator is not visible (the small highlighting circle is not visible)

Note:- Found this issue on iOS 10.3 only...

Failed to render and update auto layout status

I get some errors like this, and in my storyboard, my view is blank. Any ideas to resolve it?

Thanks ๐Ÿ˜ƒ

Main.storyboard: error: IB Designables: Failed to render and update auto layout status for ControlLightViewController (Tlk-rF-UDK): dlopen(HueKit.framework, 1): no suitable image found.  Did find:
	HueKit.framework: required code signature missing for 'HueKit.framework'

Set color of SquareView

Because this can't be the correct way to do it

// bgc is a UIColor
let h = bgc.hsvValue?.h ?? 0.0
let s = bgc.hsvValue?.s ?? 0.0
let v = bgc.hsvValue?.v ?? 0.0
backgroundColorSquarePicker.hue = h
backgroundColorSquarePicker.value.x = s
backgroundColorSquarePicker.value.y = v

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.