---
title: UIColorPickerViewController
framework: uikit
role: symbol
role_heading: Class
path: uikit/uicolorpickerviewcontroller
---

# UIColorPickerViewController

A view controller that manages the interface for selecting a color.

## Declaration

```swift
@MainActor class UIColorPickerViewController
```

## Overview

Overview UIColorPickerViewController provides a standard interface to select colors. Use this class instead of UIColorWell if you need more fine-grained control over the presentation.

You typically present a UIColorPickerViewController as a popover: // This example code appears in a subclass of UIViewController that conforms to // UIColorPickerViewControllerDelegate. func presentColorPicker() {     let colorPicker = UIColorPickerViewController()     colorPicker.title = "Background Color"     colorPicker.supportsAlpha = false     colorPicker.delegate = self     colorPicker.modalPresentationStyle = .popover     colorPicker.popoverPresentationController?.sourceItem = self.navigationItem.rightBarButtonItem     self.present(colorPicker, animated: true) } You can also react to the color-selection change or the dismissal of the color picker by implementing the UIColorPickerViewControllerDelegate functions.

## Topics

### Creating a color picker view controller

- [init()](uikit/uicolorpickerviewcontroller/init().md)

### Configuring the color picker view controller

- [delegate](uikit/uicolorpickerviewcontroller/delegate.md)
- [UIColorPickerViewControllerDelegate](uikit/uicolorpickerviewcontrollerdelegate.md)
- [maximumLinearExposure](uikit/uicolorpickerviewcontroller/maximumlinearexposure.md)
- [selectedColor](uikit/uicolorpickerviewcontroller/selectedcolor.md)
- [supportsAlpha](uikit/uicolorpickerviewcontroller/supportsalpha.md)
- [supportsEyedropper](uikit/uicolorpickerviewcontroller/supportseyedropper.md)

## Relationships

### Inherits From

- [UIViewController](uikit/uiviewcontroller.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSExtensionRequestHandling](foundation/nsextensionrequesthandling.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSTouchBarProvider](appkit/nstouchbarprovider.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [UIActivityItemsConfigurationProviding](uikit/uiactivityitemsconfigurationproviding.md)
- [UIAppearanceContainer](uikit/uiappearancecontainer.md)
- [UIContentContainer](uikit/uicontentcontainer.md)
- [UIFocusEnvironment](uikit/uifocusenvironment.md)
- [UIPasteConfigurationSupporting](uikit/uipasteconfigurationsupporting.md)
- [UIResponderStandardEditActions](uikit/uiresponderstandardeditactions.md)
- [UIStateRestoring](uikit/uistaterestoring.md)
- [UITraitChangeObservable](uikit/uitraitchangeobservable-67e94.md)
- [UITraitEnvironment](uikit/uitraitenvironment.md)
- [UIUserActivityRestoring](uikit/uiuseractivityrestoring.md)

## See Also

### Color picker

- [UIColorPickerViewControllerDelegate](uikit/uicolorpickerviewcontrollerdelegate.md)
