Skip to content

JasperMeurs/UIColor-Hex-Swift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UIColor-Hex-Swift

[![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, frederik@the-nerd.be

License

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

About

Create UIColor objects in Swift from a CSS color string or a hexadecimal integer.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 51.4%
  • Swift 35.4%
  • Objective-C 5.2%
  • Ruby 4.6%
  • C 3.4%