<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISearchSuggestionItem",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISearchSuggestionItem"
  },
  "title" : "UISearchSuggestionItem"
}
-->

# UISearchSuggestionItem

A selectable search parameter.

```
@MainActor class UISearchSuggestionItem
```

## Overview

This class provides a basic implementation of the [`UISearchSuggestion`](/documentation/UIKit/UISearchSuggestion) protocol.

## Topics

### Creating a search suggestion

[`init(localizedSuggestion: String, localizedDescription: String?, iconImage: UIImage?)`](/documentation/UIKit/UISearchSuggestionItem/init(localizedSuggestion:localizedDescription:iconImage:))

Creates a search suggestion with the specified text and image attributes.

[`init(localizedAttributedSuggestion: NSAttributedString, localizedDescription: String?, iconImage: UIImage?)`](/documentation/UIKit/UISearchSuggestionItem/init(localizedAttributedSuggestion:localizedDescription:iconImage:))

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

[`+ (instancetype) suggestionWithLocalizedSuggestion:(NSString *) suggestion descriptionString:(NSString *) description iconImage:(UIImage *) iconImage;`](/documentation/UIKit/UISearchSuggestionItem/suggestionWithLocalizedSuggestion:descriptionString:iconImage:)

Creates a search suggestion with the specified text and image attributes.

[`+ (instancetype) suggestionWithLocalizedAttributedSuggestion:(NSAttributedString *) suggestion descriptionString:(NSString *) description iconImage:(UIImage *) iconImage;`](/documentation/UIKit/UISearchSuggestionItem/suggestionWithLocalizedAttributedSuggestion:descriptionString:iconImage:)

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

[`init(localizedSuggestion: String, localizedDescription: String?)`](/documentation/UIKit/UISearchSuggestionItem/init(localizedSuggestion:localizedDescription:))

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

[`init(localizedAttributedSuggestion: NSAttributedString, localizedDescription: String?)`](/documentation/UIKit/UISearchSuggestionItem/init(localizedAttributedSuggestion:localizedDescription:))

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

[`+ (instancetype) suggestionWithLocalizedSuggestion:(NSString *) suggestion descriptionString:(NSString *) description;`](/documentation/UIKit/UISearchSuggestionItem/suggestionWithLocalizedSuggestion:descriptionString:)

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

[`+ (instancetype) suggestionWithLocalizedAttributedSuggestion:(NSAttributedString *) suggestion descriptionString:(NSString *) description;`](/documentation/UIKit/UISearchSuggestionItem/suggestionWithLocalizedAttributedSuggestion:descriptionString:)

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

[`init(localizedSuggestion: String)`](/documentation/UIKit/UISearchSuggestionItem/init(localizedSuggestion:))

Creates a search suggestion with the specified label.

[`init(localizedAttributedSuggestion: NSAttributedString)`](/documentation/UIKit/UISearchSuggestionItem/init(localizedAttributedSuggestion:))

Creates a search suggestion with the specified attributed label.

[`+ (instancetype) suggestionWithLocalizedSuggestion:(NSString *) suggestion;`](/documentation/UIKit/UISearchSuggestionItem/suggestionWithLocalizedSuggestion:)

Creates a search suggestion with the specified label.

[`+ (instancetype) suggestionWithLocalizedAttributedSuggestion:(NSAttributedString *) suggestion;`](/documentation/UIKit/UISearchSuggestionItem/suggestionWithLocalizedAttributedSuggestion:)

Creates a search suggestion with the specified attributed label.

### Describing a search suggestion

[`var localizedSuggestion: String?`](/documentation/UIKit/UISearchSuggestionItem/localizedSuggestion)

A label for the suggestion, usually the search term the suggestion represents.

[`var localizedAttributedSuggestion: NSAttributedString?`](/documentation/UIKit/UISearchSuggestionItem/localizedAttributedSuggestion)

An attributed label for the suggestion, usually the search term the suggestion represents.

[`var localizedDescription: String?`](/documentation/UIKit/UISearchSuggestionItem/localizedDescription)

A description of the suggestion.

[`var iconImage: UIImage?`](/documentation/UIKit/UISearchSuggestionItem/iconImage)

An image for display on the suggestion.

[`var representedObject: Any?`](/documentation/UIKit/UISearchSuggestionItem/representedObject)

An object for tracking supplementary information about the search suggestion.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`Sendable`](/documentation/Swift/Sendable)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`UISearchSuggestion`](/documentation/UIKit/UISearchSuggestion)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)