apple-text-layout-manager-selection

Compare TextKit 1 and TextKit 2 to recommend a text layout stack.

Updated Mar 19, 2026
One-click install
npx skills add https://github.com/sitapix/apple-text --skill apple-text-layout-manager-selection
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apple-text-layout-manager-selection
Source: https://github.com/sitapix/apple-text/tree/main/skills/apple-text-layout-manager-selection
Command: npx skills add https://github.com/sitapix/apple-text --skill apple-text-layout-manager-selection

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps engineers decide when to use TextKit 1 versus TextKit 2 for a text editing stack, reducing migration risk and optimizing feature alignment.

Core Features & Use Cases

  • Provides a decision framework comparing NSLayoutManager (TextKit 1) and NSTextLayoutManager (TextKit 2) across common editor requirements.
  • Guides migration strategy, including dual-path implementations and incremental adoption.
  • Assesses OS version targets, performance implications, and feature availability to produce a recommended approach.

Quick Start

Ask for a recommended layout strategy based on your app’s performance needs and OS targets.

Frequently Asked Questions about apple-text-layout-manager-selection

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose between TextKit 1 and TextKit 2 for my iOS text editing stack?

Choosing between TextKit 1 and TextKit 2 requires evaluating glyph access, multi-container layouts, Writing Tools, platform OS targets, and migration risk to produce a recommended stack and actionable steps.

What is the best way to migrate from NSLayoutManager to NSTextLayoutManager?

The best way to migrate from NSLayoutManager to NSTextLayoutManager involves adopting a dual-path implementation strategy for incremental adoption, reducing migration risk while optimizing feature alignment.

Does TextKit 2 support multi-container layouts and direct glyph access?

TextKit 2 support for multi-container layouts and direct glyph access depends on specific feature availability and compatibility, requiring an evaluation against your project's performance needs and OS targets.

When should I not use TextKit 2 for my text layout stack?

You should not use TextKit 2 when your app requires specific legacy features like direct glyph access or multi-container layouts that conflict with NSTextLayoutManager compatibility, or when OS targets lack support.

Can I use a dual-path implementation for incremental TextKit 2 migration?

Yes, you can use a dual-path implementation for incremental TextKit 2 migration, allowing you to maintain NSLayoutManager while gradually adopting NSTextLayoutManager to manage compatibility and migration risk.