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

# init(promptLabel:usesIndexedCollation:sections:)

Create an ItemCollection containing one or more Sections.

## Declaration

```swift
init(promptLabel: LocalizedStringResource? = nil, usesIndexedCollation: Bool = false, sections: [IntentItemSection<Result>])
```
