<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/ResultsCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents17ResultsCollectionP"
  },
  "title" : "ResultsCollection"
}
-->

# ResultsCollection

A protocol representing a collection of returned items with support for sectioning.

```
protocol ResultsCollection<Result>
```

## Topics

### Associated Types

[`associatedtype Result : _IntentValue`](/documentation/AppIntents/ResultsCollection/Result)

### Instance Properties

[`var items: [Self.Result.ValueType]`](/documentation/AppIntents/ResultsCollection/items)

All result items.

[`var promptLabel: LocalizedStringResource?`](/documentation/AppIntents/ResultsCollection/promptLabel)

A text prompt shown at the top of the view that presents the options.

[`var usesIndexedCollation: Bool`](/documentation/AppIntents/ResultsCollection/usesIndexedCollation)

If set to true, presents the list of options with an alphabetical index on the right side
of the screen (table view section index titles).

### Type Properties

[`static var empty: Self`](/documentation/AppIntents/ResultsCollection/empty)

An empty result.

## Relationships

### Conforming Types

[`IntentItemCollection`](/documentation/AppIntents/IntentItemCollection)

---

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)