---
title: "init(text:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/intextnotecontent/init(text:)"
---

# init(text:)

Initializes a text-based note with the specified content.

## Declaration

```swift
init(text: String)
```

## Parameters

- `text`: The text to include in the main content of the note.

## Return Value

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