Skip to content

Instantly share code, notes, and snippets.

@juanchosaravia
Created January 30, 2016 17:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juanchosaravia/465377ba11dc17ba4af5 to your computer and use it in GitHub Desktop.
Save juanchosaravia/465377ba11dc17ba4af5 to your computer and use it in GitHub Desktop.
func getRandomColor() -> UIColor {
return UIColor(
red: CGFloat(arc4random() % 256) / 255.0,
green: CGFloat(arc4random() % 256) / 255.0,
blue: CGFloat(arc4random() % 256) / 255.0,
alpha: 1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment