Agent skill

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.

Ravi Shankar589★ · 1 repos on radarProfile →
claude-coderead-onlyMIT
Install
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.

Facts
Files in the skill folder: 1
SKILL.md size: 9 KB
Bundled scripts: none
Allowed tools: ReadGlobGrep
Path: skills/swiftui/text-editing/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 589
Language: Swift

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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 | |

What's inside
Steps it walks through
  1. When This Skill Activates
  2. Decision Tree
  3. API Availability
  4. Top 5 Mistakes
  5. Text Styling Quick Reference
  6. AttributedString
  7. Available Attributes
  8. Rich Text Editing (iOS 18+)
  9. Reading Selection Attributes
  10. Custom Formatting Definition (iOS 18+)
  11. Markdown in Text
  12. Markdown Limitations
  13. Review Checklist
  14. Text Display
More from claude-code-apple-skills
All skills →
About this skill
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.

Keep going