apple-text-measurement
CommunityPrecisely size and measure text for layouts.
Authorsitapix
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Text rendering and layout often require precise measurement to size views and ensure correct line-wrapping. This skill provides guidance and patterns for measuring text dimensions using NSString/NSAttributedString APIs and TextKit.
Core Features & Use Cases
- Single-line and multi-line measurement patterns
- Per-line metrics with TextKit 1 and TextKit 2
- Guidance for proper options, rounding, and layout validations
- Use cases include sizing UILabels, UITextView, and custom text views
Quick Start
Ask me to measure text size for a given font, width, and attributes to determine layout height.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: apple-text-measurement Download link: https://github.com/sitapix/apple-text/archive/main.zip#apple-text-measurement Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.