<!--
{
  "availability" : [
    "iOS: 18.2.0 -",
    "iPadOS: 18.2.0 -",
    "macCatalyst: 18.2.0 -",
    "visionOS: 2.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWritingToolsCoordinator/init(delegate:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIWritingToolsCoordinator(im)initWithDelegate:"
  },
  "title" : "init(delegate:)"
}
-->

# init(delegate:)

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

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

Create the coordinator object during your view’s initialization, and assign
the object to your view. Use the [`addInteraction(_:)`](/documentation/UIKit/UIView/addInteraction(_:))
method to add the object to your view.

---

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)