Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyColor

Version License Platform

Screenshot

img

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

iOS 9.0+

Usage

HEX

let color = UIColor(hexString: "#ff3b30")
let color2 = UIColor(hexString: "ff3b30")
let color3 = UIColor(hexString: "FF3b30", alpha: 0.8)

RGB <0;1> or <0;255>

let color4 = UIColor(r: 255, g: 204, b: 0)
let color5 = UIColor(r: 0.9, g: 0.8, b: 0.2, a: 0.3)

System colors

let color6 = UIColor.system.blue

Installation

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

pod 'EasyColor'

Author

Aleš Hanžlík, hanzlikale@gmail.com

License

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages