<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreSpotlight",
  "identifier" : "/documentation/CoreSpotlight/CSSuggestion/localizedAttributedSuggestion-3ssly",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Spotlight",
      "CoreSpotlight"
    ],
    "preciseIdentifier" : "s:So12CSSuggestionC13CoreSpotlightE29localizedAttributedSuggestion10Foundation0E6StringVvp"
  },
  "title" : "localizedAttributedSuggestion"
}
-->

# localizedAttributedSuggestion

An attributed string for the localized suggestion.

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

## 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`](/documentation/CoreSpotlight/CSSuggestionHighlightAttributeName). Your app can use the range to add a bold highlight, if desired.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)