---
title: "colorPickerViewController(_:didSelect:continuously:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicolorpickerviewcontrollerdelegate/colorpickerviewcontroller(_:didselect:continuously:)"
---

# colorPickerViewController(_:didSelect:continuously:)

Informs the delegate when a user selects a color, indicating whether the update is part of a continuous user interaction.

## Declaration

```swift
optional func colorPickerViewController(_ viewController: UIColorPickerViewController, didSelect color: UIColor, continuously: Bool)
```

## Parameters

- `viewController`: The color picker.
- `color`: The new color.
- `continuously`: A Boolean value that indicates whether the update is part of a continuous user interaction.

## Discussion

Discussion A continuous selection is always followed by a noncontinuous one when the user finishes the gesture. Apps that support undoing should update their UI for all color changes but only undo to noncontinuous color changes.

## See Also

### Handling color picker activity

- [colorPickerViewControllerDidFinish(_:)](uikit/uicolorpickerviewcontrollerdelegate/colorpickerviewcontrollerdidfinish(_:).md)
