TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Oct 2015 |
SPMSupports SPM | ✗ |
Maintained by Frederik Jacques.
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.