Skip to content

Commit dc50c2b

Browse files
authored
Merge pull request #8 from cesaredecal/patch-1
Fixed read me to reflect current framework syntax
2 parents 255d43a + 0ff74f4 commit dc50c2b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@ Clone this repo and throw the source files under `RandomColor` folder into your
4040
## Example
4141

4242
```swift
43-
import RandomColorSwift
43+
import RandomColor
4444

4545
// Returns a UIColor or NSColor object for an attractive color
4646
let color = randomColor()
4747

4848
// Returns an array of ten green colors
49-
let greenColors = randomColors(count: 10, hue: .Green)
49+
let greenColors = randomColors(count: 10, hue: .green)
5050

5151
// Returns a color for light blue
52-
let lightBlurColor = randomColor(hue: .Blue, luminosity: .Light)
52+
let lightBlurColor = randomColor(hue: .blue, luminosity: .light)
5353

5454
// Returns a color for a 'truly random' color
55-
let randomColor = randomColor(hue: .Random, luminosity: .Random)
55+
let randomColor = randomColor(hue: .random, luminosity: .random)
5656

5757
// Returns an array of ten dark pink colors
58-
let darkPinkColors = randomColors(count: 10, hue: .Pink, luminosity: .Dark)
58+
let darkPinkColors = randomColors(count: 10, hue: .pink, luminosity: .dark)
5959

6060
// Returns an array of twenty colors at hue of 120
61-
let colors = randomColors(count: 20, hue: .Value(120), luminosity: .Random)
61+
let colors = randomColors(count: 20, hue: .value(120), luminosity: .random)
6262

6363
```
6464

0 commit comments

Comments
 (0)