---
title: "init(title:taskTitles:groupName:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/increatetasklistintent/init(title:tasktitles:groupname:)"
---

# init(title:taskTitles:groupName:)

Initializes the intent object with the specified task list details.

## Declaration

```swift
init(title: INSpeakableString?, taskTitles: [INSpeakableString]?, groupName: INSpeakableString?)
```

## Parameters

- `title`: The title of the task list.
- `taskTitles`: An array of strings containing the titles of any tasks to place in the task list.
- `groupName`: The name of the group in which to store the task list. Group names correspond to folders or other means of organizing task lists within your app.

## Return Value

Return Value An initialized intent object or nil if the object could not be created.

## Discussion

Discussion Normally, you don’t create instances of this class yourself. Instead, SiriKit creates instances when the user asks to create a task list. However, you can use this method during testing to create intent objects in order to validate your intent handling code paths.
