This library to facilitate create an UIColor by hex string
- iOS 8.0 or later
- Xcode 10.0 or later
There is a way to use AnyCodable in your project:
- using CocoaPods
pod 'HexColoring', '1.0'
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.
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)
- 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.
All source code is licensed under the MIT License.