---
title: kCTTrackingAttributeName
framework: coretext
role: symbol
role_heading: Global Variable
path: coretext/kcttrackingattributename
---

# kCTTrackingAttributeName

The tracking for the text.

## Declaration

```swift
let kCTTrackingAttributeName: CFString
```

## Discussion

Discussion The value associated with this attribute must be a CFNumber float. The default is 0 (no tracking). Tracking adds space, in points, between the specified character cluster. A positive value increases the spacing between characters, while a negative value brings the characters closer together. For example, setting kCTTrackingAttributeName to 0.1 adds 0.1 point of spacing between each character of the text. The effect of this attribute is similar to kCTKernAttributeName, but it treats tracking as trailing whitespace and a nonzero amount disables nonessential ligatures, unless overridden by the presence of kCTLigatureAttributeName. important: If you apply both kCTTrackingAttributeName and kCTKernAttributeName, kCTTrackingAttributeName supersedes kCTKernAttributeName.

## See Also

### Related Documentation

- [kCTKernAttributeName](coretext/kctkernattributename.md)
- [kCTLigatureAttributeName](coretext/kctligatureattributename.md)

### Constants

- [kCTCharacterShapeAttributeName](coretext/kctcharactershapeattributename.md)
- [kCTFontAttributeName](coretext/kctfontattributename.md)
- [kCTKernAttributeName](coretext/kctkernattributename.md)
- [kCTLigatureAttributeName](coretext/kctligatureattributename.md)
- [kCTForegroundColorAttributeName](coretext/kctforegroundcolorattributename.md)
- [kCTForegroundColorFromContextAttributeName](coretext/kctforegroundcolorfromcontextattributename.md)
- [kCTParagraphStyleAttributeName](coretext/kctparagraphstyleattributename.md)
- [kCTStrokeWidthAttributeName](coretext/kctstrokewidthattributename.md)
- [kCTStrokeColorAttributeName](coretext/kctstrokecolorattributename.md)
- [kCTSuperscriptAttributeName](coretext/kctsuperscriptattributename.md)
- [kCTUnderlineColorAttributeName](coretext/kctunderlinecolorattributename.md)
- [kCTUnderlineStyleAttributeName](coretext/kctunderlinestyleattributename.md)
- [kCTVerticalFormsAttributeName](coretext/kctverticalformsattributename.md)
- [kCTGlyphInfoAttributeName](coretext/kctglyphinfoattributename.md)
- [kCTRunDelegateAttributeName](coretext/kctrundelegateattributename.md)
