Instance Property


Controls the color spaces that the color picker can produce.


var allowedColorSpaces: [NSColorSpace]? { get set }


If a selected color is outside the allowed color spaces, the picker converts it to the first color space in the array.

Set the value of this property to nil to allow all color spaces. An empty array is an invalid value.

See Also

Configuring the Color Picker

var colorList: NSColorList!

The list of colors displayed in the color picker.

var showsAlpha: Bool

A Boolean value that controls whether the color picker allows picking of colors with alpha values other than 1.0.

var isEnabled: Bool

A Boolean value that determines whether the color picker is enabled.