Latest 0.1.0
Homepage https://github.com/Phyber64/EasyColor
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

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, [email protected]

License

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

Latest podspec

{
    "name": "EasyColor",
    "version": "0.1.0",
    "summary": "EasyColor makes working with UIColor easier",
    "swift_version": "4.2",
    "description": "EasyColor contains initializers for HEX and 8 bit colors. It also contains system colors.",
    "homepage": "https://github.com/Phyber64/EasyColor",
    "screenshots": "https://imgur.com/HxLV5qq.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Aleu0161 Hanu017elu00edk": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Phyber64/EasyColor.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "EasyColor/Classes/**/*",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This