Contents

supportsAlpha

A Boolean value that determines whether the color picker supports alpha values.

Declaration

var supportsAlpha: Bool { get set }

Discussion

If this property is false, people can select only fully opaque colors from the color picker. A value of false also hides the alpha slider. Setting this property to true enables partial color opacity, and also makes the alpha slider visible.

If ignoresAlpha is true, this property always returns false, disabling alpha globally.

By default this value is true.

See Also

Managing the selected color