HueKit是一个iOS的UI框架,为构建拾色器提供组件和工具

HueKit是一个iOS的UI框架,为构建拾色器提供组件和工具

Swift 颜色操作

访问GitHub主页

共195Star

详细介绍

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

CocoaPods

To install, add the following line to your Podfile:

pod 'HueKit', '~> 1.0'

Carthage

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.