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

# textColorPicker(withIdentifier:)

Creates a bar item with the standard text color picker icon.

## Declaration

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

## See Also

### Creating a color picker item

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