---
title: "init(promptLabel:usesIndexedCollation:items:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/intentitemcollection/init(promptlabel:usesindexedcollation:items:)"
---

# init(promptLabel:usesIndexedCollation:items:)

Create a ItemCollection containing Items, or one or more Sections.

## Declaration

```swift
init(promptLabel: LocalizedStringResource? = nil, usesIndexedCollation: Bool = false, items: [Result]) where Result : DisplayRepresentable
```
