---
title: textAlignment
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nstouchbaritem/identifier-swift.struct/textalignment
---

# textAlignment

The identifier for a Touch Bar item used to select the text alignment.

## Declaration

```swift
static let textAlignment: NSTouchBarItem.Identifier
```

## See Also

### Creating identifiers for text items

- [textFormat](appkit/nstouchbaritem/identifier-swift.struct/textformat.md)
- [textColorPicker](appkit/nstouchbaritem/identifier-swift.struct/textcolorpicker.md)
- [textList](appkit/nstouchbaritem/identifier-swift.struct/textlist.md)
- [textStyle](appkit/nstouchbaritem/identifier-swift.struct/textstyle.md)
