---
title: suggestionHighlight
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/key/suggestionhighlight
---

# suggestionHighlight

A highlight associated with a Spotlight suggestion.

## Declaration

```swift
static let suggestionHighlight: NSAttributedString.Key
```

## Discussion

Discussion The value of this attribute is an NSString object with the text that Spotlight suggested.

## See Also

### Getting text attribute keys

- [cursor](foundation/nsattributedstring/key/cursor.md)
- [link](foundation/nsattributedstring/key/link.md)
- [markedClauseSegment](foundation/nsattributedstring/key/markedclausesegment.md)
- [replacementIndex](foundation/nsattributedstring/key/replacementindex.md)
- [shadow](foundation/nsattributedstring/key/shadow.md)
- [spellingState](foundation/nsattributedstring/key/spellingstate.md)
- [textAlternatives](foundation/nsattributedstring/key/textalternatives.md)
- [textEffect](foundation/nsattributedstring/key/texteffect.md)
- [textHighlightColorScheme](foundation/nsattributedstring/key/texthighlightcolorscheme.md)
- [textHighlightStyle](foundation/nsattributedstring/key/texthighlightstyle.md)
- [textItemTag](foundation/nsattributedstring/key/textitemtag.md)
- [toolTip](foundation/nsattributedstring/key/tooltip.md)
