---
title: NSColorPickerTouchBarItem
framework: appkit
role: symbol
role_heading: Class
path: appkit/nscolorpickertouchbaritem
---

# NSColorPickerTouchBarItem

A bar item that provides a system-defined color picker.

## Declaration

```swift
class NSColorPickerTouchBarItem
```

## Overview

Overview For design guidance, see Human Interface Guidelines.

## Topics

### Creating a color picker item

- [colorPicker(withIdentifier:)](appkit/nscolorpickertouchbaritem/colorpicker(withidentifier:).md)
- [textColorPicker(withIdentifier:)](appkit/nscolorpickertouchbaritem/textcolorpicker(withidentifier:).md)
- [strokeColorPicker(withIdentifier:)](appkit/nscolorpickertouchbaritem/strokecolorpicker(withidentifier:).md)
- [colorPicker(withIdentifier:buttonImage:)](appkit/nscolorpickertouchbaritem/colorpicker(withidentifier:buttonimage:).md)

### Configuring the color picker

- [colorList](appkit/nscolorpickertouchbaritem/colorlist.md)
- [allowedColorSpaces](appkit/nscolorpickertouchbaritem/allowedcolorspaces.md)
- [showsAlpha](appkit/nscolorpickertouchbaritem/showsalpha.md)
- [isEnabled](appkit/nscolorpickertouchbaritem/isenabled.md)

### Obtaining the selected color

- [color](appkit/nscolorpickertouchbaritem/color.md)
- [target](appkit/nscolorpickertouchbaritem/target.md)
- [action](appkit/nscolorpickertouchbaritem/action.md)

### Configuring bar customization

- [customizationLabel](appkit/nscolorpickertouchbaritem/customizationlabel.md)

## Relationships

### Inherits From

- [NSTouchBarItem](appkit/nstouchbaritem.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)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Color Selection

- [NSColorPicker](appkit/nscolorpicker.md)
- [NSColorWell](appkit/nscolorwell.md)
