Color

A representation of a color that adapts to a given context.

ComponentiOS 13.0+macOS 10.15+tvOS 13.0+watchOS 6.0+Color in SwiftUI

Declaration

React
import { Color } from 'swiftui-react-native';
Swift
@frozen struct Color

Initializers

8 SwiftUI initializers back <Color>. The props you pass pick one.

React
<Color
  value: SwiftUI.Color
/>
Swift
static members of Color

Also takes the common view props: modifiers, style and testID.

See also

More in Colors and gradients.