- iOS 7.0
- Xcode 7.3 (Swift 2.2)
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.
Download the file HexColors.swift
and then add to your project.
UIColor(hex: "#fff")
UIColor(hex: "#ffffff")
UIColor(hex: "#ffffff", alpha: 0.5)
Library not loaded: @rpath/HexColors.framework/HexColors
Please refer to Carthage/Carthage#616
HexColors.swift is released under an MIT license. See the LICENSE file for more information.