Skip to content

Instantly share code, notes, and snippets.

@eamonnalphin
eamonnalphin / UIColorExtensions.swift
Created January 18, 2020 20:58
Some useful UIColor extensions in swift
//Gets a random UIColor
extension UIColor {
static func random() -> UIColor {
return UIColor(red: .random(),
green: .random(),
blue: .random(),
alpha: 1.0)
}
}