Apple TextKit 1 Specialist
Provides comprehensive guidance and implementation patterns for the Apple TextKit 1 framework, covering storage, layout, and glyph management.
TextKit 1 is the foundational text engine for iOS and macOS, and this skill equips Claude to navigate its complex MVC-based architecture. It focuses on the triad of NSTextStorage, NSLayoutManager, and NSTextContainer, offering expert advice on glyph-level access, multi-container text flows, and line-fragment geometry. This skill is particularly valuable when maintaining legacy codebases, developing specialized code editors, or working with Apple's standard document-based apps that require high-precision text rendering and temporary attribute management for features like syntax highlighting.
Key Features
01Implementation patterns for multi-container and multi-column text flows
02Expert reference for the NSTextStorage, NSLayoutManager, and NSTextContainer triad
03Troubleshooting for line-fragment geometry and exclusion path issues
04High-performance syntax highlighting techniques using temporary attributes
05Guidance on complex glyph generation, reordering, and script handling
060 GitHub stars
Use Cases
01Building high-performance code editors with custom syntax coloring and non-contiguous layout
02Implementing advanced text layouts like text wrapping around exclusion paths or multi-page flows
03Maintaining and refactoring legacy iOS or macOS applications using the original TextKit stack