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

# init(promptLabel:usesIndexedCollation:sectionsBuilder:)

Create an ItemCollection containing Items, or one or more Sections provided by a builder.

## Declaration

```swift
init(promptLabel: LocalizedStringResource? = nil, usesIndexedCollation: Bool = false, @IntentItemSection<Result>.Builder sectionsBuilder: () -> [IntentItemSection<Result>])
```
