Color
A representation of a color that adapts to a given context.
Example​
- swiftui-react-native
- SwiftUI
<Color.red frame={{ width: 100, height: 100 }} />
Color.red
.frame(width: 100, height: 100)
Supported Colors:
Color.black
Color.blue
Color.brown
Color.clear
Color.cyan
Color.gray
Color.green
Color.indigo
Color.mint
Color.orange
Color.pink
Color.purple
Color.red
Color.teal
Color.yellow
Color.accentColor
Color.primary
Color.secondary
Color.white
Props​
Color inherits all View Modifiers as props.
prop | description | type | required | default |
---|---|---|---|---|
color | The color value | Color | no | undefined |