---
title: "init(delegate:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uiwritingtoolscoordinator/init(delegate:)"
---

# init(delegate:)

Creates a writing tools coordinator and assigns the specified delegate object to it.

## Declaration

```swift
init(delegate: (any UIWritingToolsCoordinator.Delegate)?)
```

## Parameters

- `delegate`: An object capable of handling Writing Tools interactions for your view. The delegate must be able to modify your view’s text storage and refresh the view’s layout and appearance.

## Discussion

Discussion Create the coordinator object during your view’s initialization, and assign the object to your view. Use the addInteraction(_:) method to add the object to your view.
