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

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

Initializes a note object with the specified contents and attributes.

## Declaration

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

## Parameters

- `title`: The title text for the note. This string represents the initial text that users see for the note in your interface.
- `contents`: The main content of the note. Use this parameter to specify the text and images that the note contains.
- `groupName`: The container in which the note resides. For example, if your app organizes notes into named folders, use this property to specify the name of the folder.
- `createdDateComponents`: The date on which the note was created.
- `modifiedDateComponents`: The date on which the note was last modified.
- `identifier`: A unique identifier that you associate with the note internally.

## Return Value

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