One Logo Pool Ball
AppIntents · IOS API REFERENCE

IntentItemCollection

struct · iOS 16.0+ · SDK 27.1

struct IntentItemCollection<Result> where Result : _IntentValue

Return this object to provide an advanced list of options, optionally divided in sections. ## Example ``` struct CreateBookIntent: AppIntent { @Parameter(title: "Author Name", optionsProvider: AuthorNamesOptionsProvider()) var authorName: String struct AuthorNamesOptionsProvider: DynamicOptionsProvider { func results() async throws -> ItemCollection<Int> { ItemCollection { ItemSection("Italian Authors") { "Dante Alighieri" "Alessandro Manzoni" } ItemSection("Russian Authors") { "Anton Chekhov" "Fyodor Dostoevsky" } } } } } ```

Members (0)

This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.

Skipped declarations

5 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

IntentItemCollection.init(promptLabel:usesIndexedCollation:sectionsBuilder:)

callback cannot propagate synchronous failure

IntentItemCollection.init(promptLabel:usesIndexedCollation:items:)

This declaration needs Swift generic type arguments. (no canonical witness for Result)

IntentItemCollection.init(promptLabel:usesIndexedCollation:sections:)

The containing type needs Swift generic type arguments. (no canonical witness for Result)

IntentItemCollection.items

This declaration needs Swift generic type arguments. (no canonical witness for Result.ValueType)

IntentItemCollection.empty

The containing type needs Swift generic type arguments. (no canonical witness for Result)

All AppIntents types →