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

# colorPicker(withIdentifier:buttonImage:)

Creates a color picker bar item using the supplied image as its icon.

## Declaration

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

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

## See Also

### 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)
