---
title: "colorPicker(withIdentifier:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nscolorpickertouchbaritem/colorpicker(withidentifier:)"
---

# colorPicker(withIdentifier:)

Creates a bar item with the standard color picker icon.

## Declaration

```swift
class func colorPicker(withIdentifier identifier: NSTouchBarItem.Identifier) -> Self
```

## See Also

### Creating a color picker item

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