What problem does it solve?
Implementing styled text display and rich text editing in SwiftUI is challenging due to varying API availability across iOS versions, inconsistent formatting controls, and limited native Markdown support. This Skill eliminates these friction points by providing clear, version-aware patterns and best practices for all common text use cases.
Core Features & Use Cases
- Modern Text Styling: Use up-to-date SwiftUI APIs like
.foregroundStyle() and conditional bold/italic modifiers instead of deprecated options.
- Rich Text Editing: Build fully functional rich text editors with AttributedString, selection-based formatting, and custom formatting constraints for iOS 18 and later.
- Inline Markdown Support: Render basic styled Markdown content directly in SwiftUI Text views without external dependencies.
- Use Case: A note-taking app can use this Skill to implement a rich text editor with a formatting toolbar that lets users apply bold, italic, and underline styles to selected text, while also displaying styled note titles and metadata.
Quick Start
Use the text-editing skill to add a rich text editor with bold, italic, and underline formatting controls to your SwiftUI note-taking view.