ColorPicker
A control used to select a color from the system color picker UI.
Example​
- swiftui-react-native
- SwiftUI
const color = useBinding('white');
<ColorPicker selection={color} />
@State var color = Color.white
ColorPicker(selection: $color)
Props​
ColorPicker inherits all View Modifiers as props.
prop | description | type | required | default |
---|---|---|---|---|
selection | The color value | Color | yes | undefined |
onChange | Function to execute when a color selection is made | (v: string) => void | no | undefined |