You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,15 +40,15 @@ Text("RadixUI-Swift")
40
40
```
41
41
or
42
42
```swift
43
-
@Stateprivatevar color: RadixAutoColor = .crimson
43
+
privatevar color: RadixAutoColor = .crimson
44
44
45
45
Text("RadixUI-Swift")
46
46
.foregroundColor(color.solid9) // From RadixAutoColor Enum
47
47
```
48
48
49
49
In order to use your own custom color pallete head to [Radix Pallete Generator](https://www.radix-ui.com/colors/custom) and create your pallete and add them to your Asset Catalogue in 12 level named in this way for example: MyColor1, MyColor2, MyColor3, MyColor4, MyColor5, ... MyColor12 then using RadixAutoColor's `.custom` property:
0 commit comments