Skip to content

Instantly share code, notes, and snippets.

View haarismuneer's full-sized avatar

Haaris Muneer haarismuneer

View GitHub Profile
@haarismuneer
haarismuneer / color.swift
Last active October 4, 2017 15:36
Generating a random UIColor in Swift in 1 line of code
let color = UIColor(red: CGFloat(drand48()), green: CGFloat(drand48()), blue: CGFloat(drand48()), alpha: 1.0)