Skip to content
This repository has been archived by the owner on Jun 8, 2020. It is now read-only.

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandodelrio authored Dec 6, 2017
1 parent b1ec29b commit af185e1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ import UIKit

extension UIColor {
/// Color #FFC034 (alpha 255)
class func goldColor() -> UIColor {
static var goldColor: UIColor {
return UIColor(named: "Gold") ?? .clear
}

/// Color #8D00FF (alpha 255)
class func darkVioletColor() -> UIColor {
static var darkVioletColor: UIColor {
return UIColor(named: "DarkViolet") ?? .clear
}

/// Color #00FF00 (alpha 255)
class func myCoolGreen() -> UIColor {
static var myCoolGreen: UIColor {
return UIColor(named: "MyCoolGreen") ?? .clear
}
}
Expand All @@ -82,9 +82,8 @@ You will probably want to rename the color and run the tool again, but you can j

```swift
extension UIColor {
/// Color #FFC034 (alpha 255)
class func myTextColor() -> UIColor {
return .darkVioletColor()
static var myTextColor: UIColor {
return .darkVioletColor
}
}
```
Expand Down

0 comments on commit af185e1

Please sign in to comment.