<!--
{
  "availability" : [
    "iOS: 11.0.0 - 15.0.0",
    "iPadOS: 11.0.0 - 15.0.0",
    "macCatalyst: 13.1.0 - 15.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 4.0.0 - 8.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INCreateTaskListIntent/init(title:taskTitles:groupName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INCreateTaskListIntent(im)initWithTitle:taskTitles:groupName:"
  },
  "title" : "init(title:taskTitles:groupName:)"
}
-->

# init(title:taskTitles:groupName:)

Initializes the intent object with the specified task list details.

```
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

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)