Resplendent is a unit tested color library for iOS and Mac written in Swift. It provides multiple helpers for common colors tasks such as creating colors from hex strings and much more.
The leading "#" is optional
let exampleUIColor = UIColor("#bbcc12")
let exampleNSColor = NSColor("54ff00")
Results are returned without the leading "#" and all caps
let exampleUIColor = UIColor.brownColor
let hexString = exampleUIColor.hexString() // outputs "996633"
let randomColor = UIColor.randomColor()
let isBright = UIColor.yellowColor.isBright()
let isDark = NSColor.brownColor.isDark()
Resplendent is meant to be dropped in to any project. Pick and choose the files you need, but you can install all the extensions via Carthage:
github "mchoe/Resplendent" ~> 1.0
Resplendent is released under the MIT License.