Latest 0.2.0
Homepage https://github.com/frederik-jacques/UIColor-Hex-Swift
License MIT
Platforms ios 8.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Frederik Jacques/UIColor-Hex-Swift.svg?style=flat)](https://travis-ci.org/Frederik Jacques/UIColor-Hex-Swift)
Version
License
Platform

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.

Latest podspec

{
    "name": "UIColor-Hex-Swift",
    "version": "0.2.0",
    "summary": "Create UIColor objects from CSS strings or hexadecimal numbers",
    "homepage": "https://github.com/frederik-jacques/UIColor-Hex-Swift",
    "license": "MIT",
    "authors": {
        "Frederik Jacques": "[email protected]"
    },
    "source": {
        "git": "https://github.com/frederik-jacques/UIColor-Hex-Swift.git",
        "tag": "0.2.0"
    },
    "social_media_url": "https://twitter.com/thenerd_be",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*"
}

Pin It on Pinterest

Share This