Axiom TextKit 2 Reference

•
233
•

Provides comprehensive architectural guidance and migration patterns for Apple's TextKit 2 framework through iOS 26.

This skill acts as a definitive technical resource for developers building sophisticated text-based interfaces on Apple platforms using TextKit 2. It covers the fundamental shift from legacy glyph-based APIs to modern element-based architectures, offering ready-to-use patterns for viewport layout, thread-safe value semantics, and international script handling. Whether you are migrating a legacy TextKit 1 codebase, implementing custom rendering surfaces, or integrating with Apple's latest Writing Tools, this skill provides the deep technical context and implementation shortcuts needed for high-performance text rendering across iOS, macOS, and visionOS.

Key Features

01Optimized viewport layout patterns for managing visible-only text rendering and performance.
02Best practices for preventing accidental fallback to legacy TextKit 1 compatibility mode.
03Technical guidance for Writing Tools integration and SwiftUI TextEditor customization.
04Deep architectural mapping of TextKit 2's Model-Controller-View layers and object-based ranges.
05233 GitHub stars
06Proven migration strategies for converting NSRange-based logic to modern NSTextLocation systems.

Use Cases

01Implementing specialized text interaction models that support international scripts and bidirectional text.
02Modernizing enterprise iOS applications from TextKit 1 to the performant TextKit 2 framework.
03Creating custom text editors with complex rendering requirements like bubble backgrounds or syntax highlighting.