Update README.md

This commit is contained in:
Yannick Loriot 2017-01-14 19:41:48 +01:00 committed by GitHub
parent f7b314edbe
commit 1fbfab6a48
1 changed files with 3 additions and 3 deletions

View File

@ -167,9 +167,9 @@ let mixedColor = originalColor.mixed(withColor: .blue)
Let's define our reference colors and the gradient object:
```swift
let blue = UIColor(hex: 0x3498db)
let red = UIColor(hex: 0xe74c3c)
let yellow = UIColor(hex: 0xf1c40f)
let blue = UIColor(hexString: "#3498db")
let red = UIColor(hexString: "#e74c3c")
let yellow = UIColor(hexString: "#f1c40f")
let gradient = DynamicGradient(colors: [blue, red, yellow])
// equivalent to