Skip to content

Commit d87499b

Browse files
authored
Create README.md
1 parent eb678e4 commit d87499b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
2+
## SwiftUI
3+
4+
```swift
5+
#hexColor("#BA43F1")
6+
7+
// Color(.sRGB, red: 0.7294117647058823, green: 0.2627450980392157, blue: 0.9450980392156862, opacity: 1)
8+
```
9+
10+
```swift
11+
#hexColor("#BA43F1", colorSpace: .displayP3)
12+
13+
// Color(.displayP3, red: 0.7294117647058823, green: 0.2627450980392157, blue: 0.9450980392156862, opacity: 1)
14+
```
15+
16+
```swift
17+
#hexColor("#BA43F1", opacity: 1, colorSpace: .displayP3)
18+
19+
// Color(.displayP3, red: 0.7294117647058823, green: 0.2627450980392157, blue: 0.9450980392156862, opacity: 1)
20+
```
21+
22+
## UIKit
23+
24+
```swift
25+
#hexUIColorSRGB("#556421")
26+
27+
#hexUIColorSRGB("#556421", opacity: 1)
28+
29+
#hexUIColorP3("#556421")
30+
31+
#hexUIColorP3("#556421", opacity: 1)
32+
```

0 commit comments

Comments
 (0)