attributed-string
CommunityMaster rich text formatting in Swift.
Authorrshankras
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This Skill simplifies the creation, manipulation, and display of rich text using Swift's AttributedString, ensuring correct styling, alignment, and editing behavior across Apple platforms.
Core Features & Use Cases
- Rich Text Creation: Generate styled text with fonts, colors, and backgrounds.
- Attribute Manipulation: Apply attributes to specific ranges within text.
- Layout Control: Manage text alignment, writing direction, and line height.
- Text Editing: Programmatically handle text selection and replacement.
- SwiftUI Integration: Seamlessly use
AttributedStringinTextandTextEditor. - Use Case: Automatically format user-generated comments in an app with specific styles for mentions or hashtags, and enable rich text editing in a
TextEditor.
Quick Start
Use the attributed-string skill to create a bold and red attributed string with the text "Hello, World!".
Dependency Matrix
Required Modules
None requiredComponents
references
💻 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: attributed-string Download link: https://github.com/rshankras/claude-code-apple-skills/archive/main.zip#attributed-string 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.