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 NSTextView, UITextView, and 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 NSTextInputClient view with Writing Tools support.
Configure the sample code project
To configure the sample code project, do the following in Xcode:
Open the sample with the latest version of Xcode.
Set the developer team to let Xcode automatically manage the provisioning profile. For more information, see Preparing your app for distribution and Preparing your app for distribution.