---
title: "colorPickerViewControllerDidFinish(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicolorpickerviewcontrollerdelegate/colorpickerviewcontrollerdidfinish(_:)"
---

# colorPickerViewControllerDidFinish(_:)

Informs the delegate that the user dismissed the color picker.

## Declaration

```swift
optional func colorPickerViewControllerDidFinish(_ viewController: UIColorPickerViewController)
```

## Parameters

- `viewController`: The view controller that starts dismissing.

## Discussion

Discussion The system calls this method when the user dismisses the color picker. You can implement this method to show additional animations alongside the dismissal animation. For interactive dismissals, use the delegate of the presentation controller that manages the color picker instead.

## See Also

### Handling color picker activity

- [colorPickerViewController(_:didSelect:continuously:)](uikit/uicolorpickerviewcontrollerdelegate/colorpickerviewcontroller(_:didselect:continuously:).md)
