×

Color

iOS 14 +

Notes

Create a color. You can display a color directly, or use it to specify a property on another view. You can find more info at https://widgetpack.app/documentation

Syntax

color(kind: <#Enumeration (ColorKind)#>, hex: <#String (Allows Variables)#>, customRed: <#Double#>, customGreen: <#Double#>, customBlue: <#Double#>, opacity: <#Double#>)

Example

color(kind: accentColor, hex: """", customRed: 0.0, customGreen: 0.0, customBlue: 0.0, opacity: 100)