Contents

activate(_:)

Activates the color well, displays the color panel, and synchronizes the two UI elements.

Declaration

func activate(_ exclusive: Bool)

Parameters

  • exclusive:

    True to deactivate any other color wells; False to keep them active. If a color panel is active with exclusive set to True and another is subsequently activated with exclusive set to False, the exclusive setting of the first panel is ignored.

Discussion

When you call this method, the color well displays the standard color panel and sets the panel’s current color to the value in the color well. When someone changes the color in the color panel, the color well updates its selected color to match. If the color well’s isBordered property is true, the color well highlights that border while it’s active.

See Also

Activating and deactivating color wells