apple-text-textkit2-ref

Provide TextKit 2 APIs and migration guidance for NSTextLayoutManager and NSTextContentManager.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps developers who work with TextKit 2 to locate exact APIs, understand roles of NSTextLayoutManager and NSTextContentManager, and grasp viewport and fragment behaviors for reliable implementation.

Core Features & Use Cases

  • Comprehensive API reference for TextKit 2, including viewport layout, fragments, and rendering attributes.
  • Migration guidance from TextKit 1 to 2, with mapping and best practices.
  • Architectural overview of NSTextContentManager, NSTextLayoutManager, NSTextParagraph, and related components for correct integration.

Quick Start

Ask for exact TextKit 2 references and migration details to begin implementing or porting code.

Frequently Asked Questions about apple-text-textkit2-ref

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

FAQPage Schema
How do I migrate from TextKit 1 to TextKit 2?

The roles of NSTextLayoutManager and NSTextContentManager in TextKit 2 involve managing viewport layout and text content respectively, providing an architectural overview for correct integration and rendering attribute handling.

What is the role of NSTextLayoutManager and NSTextContentManager in TextKit 2?

The roles of NSTextLayoutManager and NSTextContentManager in TextKit 2 involve managing viewport layout and text content respectively, providing an architectural overview for correct integration and rendering attribute handling.

Can I use TextKit 2 for viewport layout and fragment handling on iOS 15?

TextKit 2 fragments are handled using exact APIs that manage viewport layout and rendering attributes, allowing developers to reliably implement text fragments within the NSTextLayoutManager architecture.

How do I handle text fragments in TextKit 2?

TextKit 2 fragments are handled using exact APIs that manage viewport layout and rendering attributes, allowing developers to reliably implement text fragments within the NSTextLayoutManager architecture.

What are the limitations of migrating to TextKit 2 on macOS 12?

Migrating to TextKit 2 on macOS 12 involves understanding the architectural shift to NSTextContentManager and NSTextLayoutManager, requiring careful mapping of lifecycle usage and viewport behaviors to avoid integration issues.