# danielsaidi/RichTextKit

View and edit rich text in SwiftUI.

Repository: https://github.com/danielsaidi/RichTextKit
Canonical: https://ross.abutalabs.com/products/richtextkit
Homepage: https://danielsaidi.com
Language: Swift
License: MIT
License Family: permissive
Topics: swift, swiftui, appkit, rich-text, rich-text-editor, uikit
Last push: 2026-06-05T14:27:25+00:00

## Health v2 (maintenance only)
Score: 68/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 86, release rhythm 28, longevity 100
- inputs: {"age_days": 1576, "days_push": 89, "days_rel": 502, "gap_med": 48.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1274, forks 165 (observed 2026-08-28T04:04:12.787637+00:00)

## What it is
A Swift library for viewing and editing rich text in SwiftUI on Apple platforms, built on a bridge between UITextView and NSTextView. It provides a RichTextEditor/RichTextViewer with support for text styles, fonts, colors, alignments, and image attachments.

## Use cases
- build a rich text editor in a SwiftUI app
- let users format text with bold, italic, and underline
- display read-only rich text content in SwiftUI
- add font and color controls to a text editor
- support image attachments in editable text
- unify UITextView and NSTextView behavior across iOS and macOS

## When to choose
- you need a feature-rich rich text editor on Apple platforms with SwiftUI
- you need to support older OS versions lacking native attributed string editing
- you want platform-agnostic APIs over UITextView/NSTextView

## When to avoid
- you target iOS/macOS 26+ and can use native TextEditor attributed string editing
- you need cross-platform (non-Apple) rich text editing
- you need a fully maintained long-term solution given the author's uncertainty about its future

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, editor, form-handling
- domain: mobile-development, frontend, text-editors, cross-platform
- platform: -
- tags: swiftui, rich-text, uikit, appkit, attributed-string, text-editor, ios, macos, swift, mobile, desktop

## Member repositories
- danielsaidi/RichTextKit (main) score 68

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:12.787637+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T05:03:06.585083+00:00, confidence not recorded.
  - readme: https://github.com/danielsaidi/RichTextKit (fetched 2026-08-28T04:04:12.787637+00:00, sha 7e39fb2a452f)
  - homepage: https://danielsaidi.com (fetched 2026-08-29T12:14:09.821113+00:00, sha 9b439647ef84)
- Data as of 2026-08-30T08:39:29.467469+00:00.
