levantAJ / HexColor

Create UIColor by hex code

Home Page:https://geek-is-stupid.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CocoaPods CocoaPods Pod License Build Status

HexColoring

This library to facilitate create an UIColor by hex string

Requirements

  • iOS 8.0 or later
  • Xcode 10.0 or later

Installation

There is a way to use AnyCodable in your project:

  • using CocoaPods

Installation with CocoaPods

pod 'HexColoring', '1.0'

Build Project

At this point your workspace should build without error. If you are having problem, post to the Issue and the community can help you solve it.

How To Use

import HexColoring

let color = UIColor(hexString: "#1a2b3c")
let color = UIColor(hexString: "1a2b3c")
let color = UIColor(hexString: "#aabbcc", alpha: 0.5)
let color = UIColor(hexString: "abcdef", alpha: 0.2)

Author

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute, submit a pull request.

Licenses

All source code is licensed under the MIT License.

About

Create UIColor by hex code

https://geek-is-stupid.github.io/

License:MIT License


Languages

Language:Swift 73.4%Language:Ruby 14.1%Language:Objective-C 12.4%