Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
artemnovichkov authored Mar 23, 2018
1 parent 83155cf commit b9e9a71
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,11 @@

extension UIColor {

convenience init(r red: Int, g green: Int, b blue: Int, a: CGFloat = 1) {
self.init(red: CGFloat(red) / 255, green: CGFloat(green) / 255, blue: CGFloat(blue) / 255, alpha: a)
convenience init(r red: Int, g green: Int, b blue: Int, a: CGFloat = 1) { // swiftlint:disable:this identifier_name
self.init(red: CGFloat(red) / 255,
green: CGFloat(green) / 255,
blue: CGFloat(blue) / 255,
alpha: a)
}

static let electricBlue = UIColor(r: 0, g: 86, b: 255)
Expand Down

0 comments on commit b9e9a71

Please sign in to comment.