TextKit 2: Four Years Later, Not a Silver Bullet

2025-08-16
TextKit 2: Four Years Later, Not a Silver Bullet

Announced at WWDC21, TextKit 2, after four years, falls short of its promised ease of use. While the architecture is sound, the implementation is riddled with issues. NSTextContentStorage is the only viable storage implementation, severely limiting customization. Furthermore, the viewport mechanism, intended to optimize performance, results in unstable scrollbar positioning and jittering during scrolling. The author encountered numerous bugs, some unresolved for extended periods, significantly impacting user experience. In short, TextKit 2 is not a perfect text layout solution, especially for text editing UIs.

Development Text Layout