<!--
{
  "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/CSUserQuery/Suggestion",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Core Spotlight",
      "CoreSpotlight"
    ],
    "preciseIdentifier" : "s:So11CSUserQueryC13CoreSpotlightE10SuggestionV"
  },
  "title" : "CSUserQuery.Suggestion"
}
-->

# CSUserQuery.Suggestion

A suggested text completion for a query’s search term.

```
struct Suggestion
```

## Discussion

When executing its query, a [`CSUserQuery`](/documentation/CoreSpotlight/CSUserQuery) object returns both results
and suggestions for text completions of the current term. Use the
[`suggestion`](/documentation/CoreSpotlight/CSUserQuery/Suggestion/suggestion) property of this structure to
get one of the suggestions to display in your app’s interface and use
in a new query.

## Topics

### Instance Properties

[`var suggestion: CSSuggestion`](/documentation/CoreSpotlight/CSUserQuery/Suggestion/suggestion)

## Relationships

### Conforms To

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

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

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

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

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

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

---

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)