[![CI Status](http://img.shields.io/travis/Frederik Jacques/UIColor-Hex-Swift.svg?style=flat)](https://travis-ci.org/Frederik Jacques/UIColor-Hex-Swift)
This Swift extension on UIColor is a port of the Objective-C category made by Tom Adriaenssen. I ported it because I had issues implementing the Objective-C version with a bridging header in a Swift project.
To run the example project, clone the repo, and run pod install
from the Example directory first.
These methods will be added to the UIColor class.
-
colorWithCSS( css:String )
-
colorWithHex( hex:UInt )
Import the module in the file where you want to use the extension.
import UIColor_Hex_Swift
UIColor-Hex-Swift is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "UIColor-Hex-Swift"
Frederik Jacques, [email protected]
UIColor-Hex-Swift is available under the MIT license. See the LICENSE file for more info.