apple-text-layout-invalidation

Diagnose stale TextKit layout issues across TextKit 1 and 2.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Debugging stale or unexpected TextKit layout across TextKit 1 and TextKit 2, including how edits, attributes, and viewport changes invalidate layout and how to fix it.

Core Features & Use Cases

  • Unified invalidation models for TextKit 1 and 2 troubleshooting.
  • Practical debugging patterns, breakpoints, and profiling guidance.
  • Guidance for viewport-driven layout, fragment management, and performance considerations.

Quick Start

Ask a focused question about a stale layout symptom to receive targeted debugging steps.

Frequently Asked Questions about apple-text-layout-invalidation

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

FAQPage Schema
Why does my TextKit layout show stale text after edits or viewport changes?▼

Stale TextKit layout happens when edits, attributes, or viewport-driven rendering fail to properly invalidate the layout cache. This Skill diagnoses these invalidation issues across TextKit 1 and 2 workflows.

How do I debug TextKit layout invalidation issues in my editor?▼

You can debug TextKit layout invalidation using practical debugging patterns, targeted breakpoints, and profiling guidance provided by this Skill to pinpoint and resolve layout glitches in editor workflows.

Does this Skill support troubleshooting both TextKit 1 and TextKit 2?▼

Yes, this Skill provides unified invalidation models and troubleshooting guidance that apply across both TextKit 1 and TextKit 2, covering typical editor edit and attribute workflows.

What is the best way to optimize viewport-driven TextKit layout performance?▼

To optimize viewport-driven TextKit layout performance, use the viewport optimization guidance and fragment management strategies provided to diagnose rendering bottlenecks and fix layout glitches.

How does TextKit layout invalidation work when applying text attributes?▼

TextKit layout invalidation triggers when applying text attributes, requiring the layout engine to recalculate affected fragments. This Skill provides the invalidation models needed to understand and debug this process.

TextKit layout invalidation is not working as expected, what are the common limitations?▼

Common limitations in TextKit layout invalidation involve improper fragment management or viewport-driven rendering edge cases. This Skill helps identify these constraints and offers debugging patterns to resolve them.