---
title: "init(title:tasks:groupName:createdDateComponents:modifiedDateComponents:identifier:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/intasklist/init(title:tasks:groupname:createddatecomponents:modifieddatecomponents:identifier:)"
---

# init(title:tasks:groupName:createdDateComponents:modifiedDateComponents:identifier:)

Initializes the task list object with the specified content.

## Declaration

```swift
init(title: INSpeakableString, tasks: [INTask], groupName: INSpeakableString?, createdDateComponents: DateComponents?, modifiedDateComponents: DateComponents?, identifier: String?)
```

## Parameters

- `title`: The title text that describes the task list.
- `tasks`: The tasks to include in the task list.
- `groupName`: The name of the group that contains the task list.
- `createdDateComponents`: The date on which the task was initially created.
- `modifiedDateComponents`: The last date on which the task was updated.
- `identifier`: The unique identifier that your app uses to identify the task list.

## Return Value

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