# twitter/TwitterTextEditor

A standalone, flexible API that provides a full-featured rich text editor for iOS applications.

Repository: https://github.com/twitter/TwitterTextEditor
Canonical: https://ross.abutalabs.com/products/twittertexteditor
Language: Swift
License: Apache-2.0
License Family: permissive
Topics: ios, uikit, swift, textkit
Last push: 2023-04-10T11:23:42+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2141, "days_push": 1241, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2999, forks 170 (observed 2026-08-28T04:07:37.389102+00:00)

## What it is
TwitterTextEditor is a standalone Swift library providing a full-featured rich text editor for iOS apps built on UIKit and TextKit. It offers safe text modification, attribute annotations like syntax highlighting, and delegate-based APIs for text editing events.

## Use cases
- embed a rich text editor in an iOS app
- add syntax highlighting to a text input field
- handle paste and drag-and-drop of text safely
- build a composer or message input with attributed text
- get reliable text editing events in UIKit

## When to choose
- you need a robust rich text editor on iOS 11+ without building one from TextKit yourself
- you want delegate-based APIs for safe text modification and attribute updates
- you use Swift Package Manager, CocoaPods, or Carthage

## When to avoid
- you need a cross-platform or SwiftUI-native editor
- your project targets platforms other than iOS/macCatalyst
- you need a library under heavy active development

## Facets
- artifact type: library
- maturity: maintenance
- function: editor, ui-components
- domain: mobile-development, text-editors, developer-tools
- platform: -
- tags: uikit, textkit, rich-text-editor, syntax-highlighting, swift-package-manager, ios, swift, mobile

## Member repositories
- twitter/TwitterTextEditor (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:37.389102+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-30T07:30:36.031173+00:00, confidence not recorded.
  - readme: https://github.com/twitter/TwitterTextEditor (fetched 2026-08-28T04:07:37.389102+00:00, sha 7d63a6a726d6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
