Skip to content

honyxia/HLUIColorExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HLUIColorExtension

This is a extension for UIColor, implement random color, and convert hex string to RGB.

The Effect

How to use

Download the Demo, and drag UIColorExtension.swift file to your project.

view.backgroundColor = UIColor(r: 50, g: 150, b: 200)
view.backgroundColor = UIColor(hex: "0xFC6200")
view.backgroundColor = UIColor.randomColor()

About

An extension of UIColor, implement random color

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages