Txt Textkit Choice

Choose between TextKit 1 (NSLayoutManager) and TextKit 2 (NSTextLayoutManager) and weigh migration risk. Covers feature gates that force one stack (glyph access, multi-container layout, NSTextTable, Writing Tools inline, syntax-highlighting reliability), real-world performance evidence on large documents, scroll-bar behavior under estimated heights, line-counting cost on each stack, and dual-code-path patterns for code that needs to support both. Use when starting a new editor and deciding which stack to commit to, when an existing TextKit 1 codebase is debating migration, or when fallback pressure is forcing the question of whether to stay on TextKit 1 deliberately. Do NOT use for the API reference of either stack — see txt-textkit1 / txt-textkit2.

sitapix afea0e2 17.3 KB Updated

File contents

sitapix/apple-text/tree/main/skills/txt-textkit-choice commit afea0e2ae6

Frequently asked questions

npx skillmds@latest add sitapix/txt-textkit-choice