View Source ColorPicker

<ColorPicker>

Presents a system color picker when tapped.

Overview

The color is stored as a map with the keys r, g, b, and optionally a.

<ColorPicker selection={@favorite_color} phx-change="color-changed" supportsOpacity>
    Favorite Color
</ColorPicker>

Attributes

supportsOpacity

Bindings

SwiftUI Documentation

See SwiftUI.ColorPicker for more details on this View.

References

The currently selected color value.

Discussion

The color is stored as a map with the keys r, g, b, and optionally a.

Link to this reference

supportsOpacity

Enables the selection of transparent colors.