What problem does it solve?
This Skill consolidates TextKit 2 reference material into a single, developer-friendly guide to help iOS engineers understand architecture, migration from TextKit 1, and integration with Writing Tools and SwiftUI components.
Core Features & Use Cases
- Architecture overview of TextKit 2 components (NSTextContentManager, NSTextLayoutManager, NSTextViewportLayoutController, etc.) and how they replace TextKit 1 APIs.
- Migration guidance from TextKit 1: converting NSRange/glyph-based logic to NSTextLocation/NSTextRange patterns and adopting non-existent glyph APIs.
- Writing Tools and SwiftUI integration: guidance for UITextView/NSTextView with Writing Tools, TextEditor interactions, and UIKit/AppKit cross-compatibility.
- Use case example: migrating a heavy text editing feature to TextKit 2 to improve safety and performance while preserving layout semantics.
Quick Start
Ask the AI to summarize the TextKit 2 migration path from TextKit 1 for an iOS app, and outline the key layout manager changes, range handling, and writing-tools considerations.