Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

text-editing

Skill by rshankras

Adds SwiftUI patterns for styled text display and rich text editing with Text, AttributedString and TextEditor. Written for developers who need formatting controls such as bold, italic and underline. Covers iOS 18 selection-based editing APIs.

  • Score 79
  • 912 stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install text-editing

Built from the published package, never by AI.

git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills /tmp/claude-code-apple-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-code-apple-skills/skills/swiftui/text-editing ~/.claude/skills/text-editing

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install text-editing in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an AI assistant patterns for styled text display and rich text editing in SwiftUI. It covers the Text view and its styling modifiers, AttributedString for mixing styles in one string, and TextEditor with selection-based formatting. It also covers inline Markdown rendering in Text views and custom formatting definitions that limit which options an editor offers.

The skill is a SKILL.md file with a decision tree, an API availability table, a list of common mistakes, and a review checklist. Its rich text examples use iOS 18 APIs such as TextEditor with an AttributedString binding, AttributedTextSelection, and transformAttributes. It is aimed at developers building SwiftUI apps who need bold, italic, underline or formatting toolbars. The source is marked for iOS 27 and macOS 27.

Written from the project's SKILL.md and checked against it.

What it can do

  • Styled text displayShows read-only text with font, weight, color, underline, strikethrough and layout modifiers.
  • AttributedString stylingStyles specific ranges of a string with font, color, background and underline attributes.
  • Rich text editingBuilds a TextEditor bound to an AttributedString with selection-based formatting (iOS 18+).
  • Formatting toolbar patternToggles bold, italic and underline on the current selection using transformAttributes.
  • Custom formatting definitionsConstrains which formatting options are available in a rich text editor.
  • Inline Markdown in TextRenders bold, italic, links and inline code in Text views, and lists the limits of that support.

What you need

  • SwiftUI
  • iOS 18 or later for rich text editing APIs

Try asking

  • Make a SwiftUI rich text editor with bold, italic and underline buttons
  • Show a styled AttributedString with red and blue words in SwiftUI
  • Limit my TextEditor so users can only apply bold formatting

Good to know

  • Text supports only inline Markdown: no lists, tables, code blocks, images or block quotes.
  • Rich text editing with selection-based formatting requires iOS 18 or later.
  • Targets SwiftUI on iOS 27 and macOS 27 according to the source metadata.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/swiftui/text-editing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadGlobGrep

Alternatives to text-editing

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

text-editing: common questions

Does this skill support Markdown in SwiftUI Text views?

It covers inline Markdown only, such as bold, italic, links and inline code. The source says Text does not render lists, tables, code blocks, images or block quotes.

Which API should I use for rich text in TextEditor?

The source says to use TextEditor with an AttributedString binding and a selection binding, which needs iOS 18 or later. Plain string editing uses TextEditor(text:) instead.

Does it include a formatting toolbar example?

Yes. It includes bold, italic and underline toggle functions that use transformAttributes on the current selection and font resolution context.

How do I install text-editing?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is text-editing free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is text-editing safe to use?

It scores 79 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to text-editing?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

text-editing Install

Add to stack

Loading.