SwiftColors是HEX颜色处理工具,作为UIColor的扩展,使用Swift编写。
示例:
// Most simple waylet colorFromIt: UIColor = 0x3ab976// With hashlet color: UIColor = UIColor(hexStrig: "#ff8942")// Without hash, with alphalet secodColor: UIColor = UIColor(hexStrig: "ff8942", alpha: 0.5)// Short hadliglet shortColorWithHex: UIColor = UIColor(hexStrig: "fff")
评论