<!--
{
  "availability" : [
    "iOS: 14.0.0 - 15.0.0",
    "iPadOS: 14.0.0 - 15.0.0",
    "macCatalyst: 14.0.0 - 15.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIColorPickerViewControllerDelegate/colorPickerViewControllerDidSelectColor(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIColorPickerViewControllerDelegate(im)colorPickerViewControllerDidSelectColor:"
  },
  "title" : "colorPickerViewControllerDidSelectColor(_:)"
}
-->

# colorPickerViewControllerDidSelectColor(_:)

Informs the delegate when the user selects a color.

```
optional func colorPickerViewControllerDidSelectColor(_ viewController: UIColorPickerViewController)
```

## Parameters

`viewController`

The view controller that receives the color change.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)