Skip to content

antife-yinyue/HexColors.swift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HexColors.swift

Build status Carthage compatible

Requirements

  • iOS 7.0
  • Xcode 7.3 (Swift 2.2)

Installation

Using Carthage

Add github "jsw0528/HexColors.swift" to your Cartfile and run carthage update --platform iOS. If unfamiliar with Carthage then checkout their Getting Started section or this sample app

Then add import HexColors to the top of the files using HexColors.swift.

Manually

Download the file HexColors.swift and then add to your project.

Usage

UIColor(hex: "#fff")

UIColor(hex: "#ffffff")

UIColor(hex: "#ffffff", alpha: 0.5)

Got an error?

Library not loaded: @rpath/HexColors.framework/HexColors

Please refer to Carthage/Carthage#616

License

HexColors.swift is released under an MIT license. See the LICENSE file for more information.