HexColor
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 'HexColor', '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 HexColor
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.