GitHub - rajahafify/UIColorHex: Hex color extension for Swift UIColor

· GitHub

1 min read Original article ↗

Repository files navigation

This is an extension for UIColor which allows it to use hex.

Written in swift

Just drop UIColorHex.swift to your project folder and it is ready to use.

Usage:

UIColor(hex: "#ffffff") //white
UIColor(hex: "#000000") //black

Pull request is appreciated.