text-editing
Styled text display and rich text editing in SwiftUI using Text, AttributedString, and TextEditor with formatting controls. Use when implementing rich text editing or styled text display.
npx skills add rshankras/claude-code-apple-skills --skill text-editing --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Styled Text Editing Patterns for displaying styled text and building rich text editors in SwiftUI. Covers Text styling, AttributedString, TextEditor with selection-based formatting, and custom formatting definitions. ## When This Skill Activates Use this skill when the user: - Wants to display styled or formatted text - Needs rich text editing with bold/italic/underline controls - Asks about AttributedString or TextEditor - Wants text formatting toolbars - Asks about Markdown rendering in Text views - Needs custom text attributes or formatting constraints - Wants selection-based text formatting ## Decision Tree ``` What text feature do you need? | +- Display styled read-only text | +- Simple styling (one style) -> Text Styling section below | +- Mixed styles in one string -> AttributedString section below | +- Markdown content -> Markdown section below | +- Edit plain text | +- TextEditor(text: $stringBinding) | +- Edit rich/styled text | +- Basic rich editor -> Rich Text Editing section below | +- With formatting toolbar -> Formatting Controls section below | +- With custom constraints -> Custom Formatting section below ``` ## API Availability | API | Minimum Version | Notes | |
- When This Skill Activates
- Decision Tree
- API Availability
- Top 5 Mistakes
- Text Styling Quick Reference
- AttributedString
- Available Attributes
- Rich Text Editing (iOS 18+)
- Reading Selection Attributes
- Custom Formatting Definition (iOS 18+)
- Markdown in Text
- Markdown Limitations
- Review Checklist
- Text Display
What does the text-editing skill do?
Styled text display and rich text editing in SwiftUI using Text, AttributedString, and TextEditor with formatting controls. Use when implementing rich text editing or styled text display.
How do I install it?
Run `npx skills add rshankras/claude-code-apple-skills --skill text-editing --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From rshankras/claude-code-apple-skills, a repository with 589 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.