Update README.md
This commit is contained in:
parent
f7b314edbe
commit
1fbfab6a48
|
@ -167,9 +167,9 @@ let mixedColor = originalColor.mixed(withColor: .blue)
|
||||||
|
|
||||||
Let's define our reference colors and the gradient object:
|
Let's define our reference colors and the gradient object:
|
||||||
```swift
|
```swift
|
||||||
let blue = UIColor(hex: 0x3498db)
|
let blue = UIColor(hexString: "#3498db")
|
||||||
let red = UIColor(hex: 0xe74c3c)
|
let red = UIColor(hexString: "#e74c3c")
|
||||||
let yellow = UIColor(hex: 0xf1c40f)
|
let yellow = UIColor(hexString: "#f1c40f")
|
||||||
|
|
||||||
let gradient = DynamicGradient(colors: [blue, red, yellow])
|
let gradient = DynamicGradient(colors: [blue, red, yellow])
|
||||||
// equivalent to
|
// equivalent to
|
||||||
|
|
Loading…
Reference in New Issue