<!--
{
  "availability" : [
    "Xcode: 14.3.0 -",
    "iOS: 16.0.0 -",
    "macOS: 13.0.0 -"
  ],
  "documentType" : "article",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/using-textkit-2-to-interact-with-text",
  "metadataVersion" : "0.1.0",
  "role" : "sampleCode",
  "title" : "Using TextKit 2 to interact with text"
}
-->

# Using TextKit 2 to interact with text

Interact with text by managing text selection and inserting custom text elements.

## Overview

> Note: This sample code project is associated with WWDC21 session [10061: Meet TextKit 2](https://developer.apple.com/wwdc21/10061/).

---

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)