From 1fbfab6a489ff8d6ca7e8e204d7fda9933bfe55c Mon Sep 17 00:00:00 2001 From: Yannick Loriot Date: Sat, 14 Jan 2017 19:41:48 +0100 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 05ca9ac..9afc3e0 100644 --- a/README.md +++ b/README.md @@ -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