---
title: localizedAttributedSuggestion
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/cssuggestion/localizedattributedsuggestion-3ssly
---

# localizedAttributedSuggestion

An attributed string for the localized suggestion.

## Declaration

```swift
var localizedAttributedSuggestion: AttributedString { get }
```

## Discussion

Discussion The localizedAttributedString provides the suggestion text that the system uses to replace the text in the search bar. The system uses the attributed string to highlight the range of the suggestion string that matches the user query string. For example, the user types “search”, and the system offers a suggestion for “search suggestion”, where the system marks up “search” using the CSSuggestionHighlightAttributeName. Your app can use the range to add a bold highlight, if desired.

## See Also

### Setting suggestion attributes

- [suggestionKind](corespotlight/cssuggestion/suggestionkind-swift.property.md)
- [CSSuggestion.SuggestionKind](corespotlight/cssuggestion/suggestionkind-swift.enum.md)
