Skip to content

Commit

Permalink
Added example of #colorLiteral usage
Browse files Browse the repository at this point in the history
  • Loading branch information
TomiLahtinen committed Jan 5, 2018
1 parent e858b75 commit 1d76b2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -158,6 +158,10 @@ enum Config {
enum Color {
static let primaryColor = UIColor(red: 0.22, green: 0.58, blue: 0.29, alpha: 1.0)
static let secondaryColor = UIColor.lightGray

// A visual way to define colours within code files is to use #colorLiteral
// This syntax will present you with colour picker component right on the code line
static let tertiaryColor = #colorLiteral(red: 0.22, green: 0.58, blue: 0.29, alpha: 1.0)
}

```
Expand Down

0 comments on commit 1d76b2c

Please sign in to comment.