UIColor-Hex-Swift 0.2.0

UIColor-Hex-Swift 0.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Oct 2015
SPMSupports SPM

Maintained by Frederik Jacques.



UIColor-Hex-Swift

What?

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.

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Methods

These methods will be added to the UIColor class.

  • colorWithCSS( css:String )

  • colorWithHex( hex:UInt )

Requirements

Import the module in the file where you want to use the extension.

import UIColor_Hex_Swift

Installation

UIColor-Hex-Swift is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "UIColor-Hex-Swift"

Author

Frederik Jacques, [email protected]

License

UIColor-Hex-Swift is available under the MIT license. See the LICENSE file for more info.