Skip to content

digitalasia/Colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Colors

A simple way to generate UIColor by copying and pasting RGB code in swift project.

let color = UIColor.rgb(0xEB79BC) #pink
let color = UIColor.rgb(0x51E0BF) #green
let color = UIColor.rgb(0x5183E0) #blue

#color with alpha
let color = UIColor.rgba(0xEB79BC, 0.8) #pink
let color = UIColor.rgba(0x51E0BF, 0.9) #green
let color = UIColor.rgba(0x5183E0, 0.7) #blue

###How to add?

Simply drag the Colors.swift file into your swift project.

###pre-defined colors

let color = UIColor.flatRedColor()
let color = UIColor.flatGreenColor()
let color = UIColor.flatDarkBlueColor()

Contribute

If you like to add colors to Colors, please feel free to open a new pull request.

Inspired by

Contact

License

Color is released under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages