---
title: "init(localizedAttributedSuggestion:localizedDescription:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uisearchsuggestionitem/init(localizedattributedsuggestion:localizeddescription:)"
---

# init(localizedAttributedSuggestion:localizedDescription:)

Creates a search suggestion with the specified attributed label and accessibility description.

## Declaration

```swift
init(localizedAttributedSuggestion suggestion: NSAttributedString, localizedDescription description: String?)
```

## Parameters

- `suggestion`: An attributed label for the suggestion, usually the search term the suggestion represents.
- `description`: A description of the suggestion. The system uses this description for accessibility.

## See Also

### Creating a search suggestion

- [init(localizedSuggestion:localizedDescription:iconImage:)](uikit/uisearchsuggestionitem/init(localizedsuggestion:localizeddescription:iconimage:).md)
- [init(localizedAttributedSuggestion:localizedDescription:iconImage:)](uikit/uisearchsuggestionitem/init(localizedattributedsuggestion:localizeddescription:iconimage:).md)
- [init(localizedSuggestion:localizedDescription:)](uikit/uisearchsuggestionitem/init(localizedsuggestion:localizeddescription:).md)
- [init(localizedSuggestion:)](uikit/uisearchsuggestionitem/init(localizedsuggestion:).md)
- [init(localizedAttributedSuggestion:)](uikit/uisearchsuggestionitem/init(localizedattributedsuggestion:).md)
