<!--
{
  "availability" : [
    "iOS: 18.4.0 -",
    "iPadOS: 18.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIInputSuggestion",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIInputSuggestion"
  },
  "title" : "UIInputSuggestion"
}
-->

# UIInputSuggestion

A base class you use to handle suggestions from the keyboard or system.

```
class UIInputSuggestion
```

## Discussion

To handle photo search suggestions from Smart Actions, use [`UIPhotoSearchSuggestion`](/documentation/UIKit/UIPhotoSearchSuggestion), which provides the filter metadata you need to present a pre-populated photo picker or build a custom photo search. To handle Smart Reply suggestions, use [`UISmartReplySuggestion`](/documentation/UIKit/UISmartReplySuggestion), which provides the reply text the person selected to guide a long-form response.

## Relationships

### Inherited By

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

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

### Conforms To

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

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

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

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

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

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

### 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)