---
title: NSTextHighlightColorSchemeAttributeName
framework: uikit
role: symbol
role_heading: Global Variable
path: uikit/nstexthighlightcolorschemeattributename
---

# NSTextHighlightColorSchemeAttributeName

The custom highlight color to apply to the text.

## Declaration

```occ
extern NSAttributedStringKey const NSTextHighlightColorSchemeAttributeName;
```

## Overview

Overview The value of this attribute is an NSTextHighlightColorScheme structure. The default value of this attribute is nil, which applies the default system highlight color to the text when the NSTextHighlightStyleAttributeName attribute is present. A highlight adds a background color behind the text, and applies a contrasting foreground color to the text itself. Set the value of this attribute to NSTextHighlightColorSchemeDefault, or don’t specify the attribute at all, to apply a highlight with the default system color. Specify a different value for this attribute to apply that highlight color instead.

## See Also

### Getting text attribute keys

- [NSLinkAttributeName](uikit/nslinkattributename.md)
- [NSShadowAttributeName](uikit/nsshadowattributename.md)
- [NSTextEffectAttributeName](uikit/nstexteffectattributename.md)
- [NSTextHighlightStyleAttributeName](uikit/nstexthighlightstyleattributename.md)
- [UITextItemTagAttributeName](uikit/uitextitemtagattributename.md)
- [NSWritingToolsExclusionAttributeName](uikit/nswritingtoolsexclusionattributename.md)
