Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 333 Bytes

README.md

File metadata and controls

14 lines (9 loc) · 333 Bytes

UIColor Hexadecimal in Swift

Extension for UIColor to initialize with an hexadecimal string written in Swift

usage:

... = UIColor.init(hexaStr: "696", alpha: 1.0)

... = UIColor.init(hexaStr: "#696", alpha: 1.0)

... = UIColor.init(hexaStr: "#669966", alpha: 1.0)

... = UIColor.init(hexaStr: "#669966", alpha: 1.0)