peteleco / UIColor-Hex-Swift

Convenience method for creating autoreleased color using RGBA hex string.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UIColor+Hex, now Swift.

Convenience method for creating autoreleased color using RGBA hex string.

var strokeColor = UIColor(rgba: "#ffcc00").CGColor // Solid color

var fillColor = UIColor(rgba: "#ffcc00dd").CGColor // Color with alpha

See more in RSBarcodes_Swift and objc version

About

Convenience method for creating autoreleased color using RGBA hex string.

License:MIT License


Languages

Language:Swift 100.0%