<!--
{
  "availability" : [
    "Xcode: 16.4.0 -",
    "macOS: 15.4.0 -"
  ],
  "documentType" : "article",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/enhancing-your-custom-text-engine-with-writing-tools",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Enhancing your custom text engine with Writing Tools"
}
-->

# Enhancing your custom text engine with Writing Tools

Add Writing Tools support to your custom text engine to enhance the text editing experience.

## Overview

The systems provide easy-to-use and highly capable APIs for text editing, such as <doc://com.apple.documentation/documentation/AppKit/NSTextView>, <doc://com.apple.documentation/documentation/UIKit/UITextView>, and SwiftUI <doc://com.apple.documentation/documentation/SwiftUI/TextEditor>. These APIs handle text rendering, text input, and user interactions, support multiple languages, and provide many features like spell checking and Writing Tools. Apps generally use these APIs to implement text editing.

In some cases, apps may desire to build a custom text editing experience by implementing a custom text engine and integrating the editor with system-provided features, such as Writing Tools. The sample app demonstrates how to implement a basic <doc://com.apple.documentation/documentation/AppKit/NSTextInputClient> view with Writing Tools support.

> Note: This sample code project is associated with WWDC25 session 265: [Dive deeper into Writing Tools](https://developer.apple.com/wwdc25/265/).

### Configure the sample code project

To configure the sample code project, do the following in Xcode:

1. Open the sample with the latest version of Xcode.
2. Set the developer team to let Xcode automatically manage the provisioning profile. For more information, see [Set the bundle ID](doc://com.apple.documentation/documentation/Xcode/preparing-your-app-for-distribution) and [Assign the project to a team](doc://com.apple.documentation/documentation/Xcode/preparing-your-app-for-distribution).

---

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)