All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

TextKit 2: Promised Improvements Marred by Implementation Issues

By

nickmain

9mo ago· 7 min readenInsight

Summary

The article discusses TextKit 2 (NSTextLayoutManager), an API announced during WWDC21, which aimed to replace the older TextKit 1 (NSLayoutManager) with promises of improved performance and ease of use. Despite its adoption in macOS and iOS frameworks, the author highlights significant issues such as unstable scrolling, unreliable height estimates, and viewport problems, even affecting Apple's own TextEdit. The author shares their experience developing STTextView, a re-implementation of TextView using TextKit 2, and critiques the framework's real-world usability despite its good architectural design.

Key quotes

· 4 pulled
TextKit 2 (NSTextLayoutManager) API was announced publicly during WWDC21, which is over 4 years ago.
Promised an easier, faster, overall better API and text layout engine that replaces the aged TextKit 1 (NSLayoutManager) engine.
The promised 'better' text engine has unstable scrolling, unreliable height estimates, and viewport issues so bad that even Apple's TextEdit suffers from them.
Good architecture, but the implementation makes it frustratingly difficult for real-world apps.
Snippet from the RSS feed
After 4 years with Apple's TextKit 2: The promised 'better' text engine has unstable scrolling, unreliable height estimates, and viewport issues so bad that even Apple's TextEdit suffers from them. Good architecture, but the implementation makes it frustr

You might also wanna read

Project Glasswing: AI-assisted vulnerability detection finds over 10,000 critical software flaws

Project Glasswing is a collaborative effort launched to secure critical software against potential threats from increasingly capable AI mode

anthropic.com·23m ago

Project Glasswing: AI-assisted vulnerability detection finds over 10,000 critical software flaws

Project Glasswing is a collaborative effort launched to secure critical software against potential threats from increasingly capable AI mode

anthropic.com·23m ago

Kefir C compiler development moves to private mode indefinitely

The developer of the Kefir C compiler announces the cessation of public development, transitioning the project to private mode indefinitely.

kefir.protopopov.lv·1h ago

NVIDIA releases open-source physical AI tools for robotics and autonomous vehicle development

NVIDIA has released a set of open-source "physical AI" skills and tools as part of the NVIDIA Agent Toolkit, designed to simplify robotics,

helpnetsecurity.com·1h ago

North Korean Group Famous Chollima Compromises Packagist Package to Target PHP Developers

A cybersecurity threat report detailing how the threat actor group "Famous Chollima" (linked to North Korea) targeted PHP developers by comp

hendryadrian.com·1h ago

CentOS Stream vs AlmaLinux vs Rocky Linux vs Oracle Linux: A VPS Hosting Comparison

This article compares four Linux distributions—CentOS Stream, AlmaLinux, Rocky Linux, and Oracle Linux—as alternatives for VPS hosting follo

blog.radwebhosting.com·1h ago