# krzyzanowskim/STTextView

Performant and reusable text view component (TextKit 2), with line numbers and more. UITextView / NSTextView replacement.

Repository: https://github.com/krzyzanowskim/STTextView
Canonical: https://ross.abutalabs.com/products/sttextview
Homepage: https://swift.best
Language: Swift
License: NOASSERTION
License Family: other
Topics: textview, macos, textkit, swift, appkit, nstextview, cococa, editor, text, swiftui, textkit2, sttextview
Last push: 2026-08-18T21:46:26+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 97, longevity 100
- inputs: {"age_days": 1659, "days_push": 15, "days_rel": 20, "gap_med": 11.0, "n_releases_24m": 33}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1587, forks 108 (observed 2026-08-28T04:05:07.928633+00:00)

## What it is
STTextView is a performant, reusable text view component for macOS and iOS built on TextKit 2, serving as an NSTextView/UITextView replacement. It includes features like line numbers, multi-cursor editing, search/replace, and plugin support for syntax highlighting.

## Use cases
- build a source code editor for macOS or iOS
- replace NSTextView with a faster TextKit 2 text view
- display line numbers in a text editing component
- implement multi-cursor text editing in a Swift app
- add syntax highlighting to a custom text editor
- create a performant text editor with search and replace
- show invisible characters and custom annotations in a text view

## When to choose
- you need a performant text editing component on Apple platforms
- NSTextView/UITextView with TextKit 2 is too buggy or slow for your use case
- you want line numbers, multi-cursor, or plugin extensibility out of the box
- you are building a code editor or IDE-like app in Swift

## When to avoid
- you need a cross-platform (non-Apple) text editor
- you only need simple, short text input where UITextView/NSTextView suffices
- you require TextKit 1 compatibility or older OS versions than macOS 14 / iOS 16
- you need a full IDE with project management rather than a text view component

## Facets
- artifact type: library
- maturity: active
- function: ui-components, editor
- domain: developer-tools, text-editors, cross-platform
- platform: -
- tags: textkit2, nstextview-replacement, uitextview-replacement, line-numbers, source-code-editor, swiftui, appkit, uikit, macos, ios, swift

## Member repositories
- krzyzanowskim/STTextView (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:07.928633+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-30T03:55:25.772823+00:00, confidence not recorded.
  - readme: https://github.com/krzyzanowskim/STTextView (fetched 2026-08-28T04:05:07.928633+00:00, sha 1278f2c966c8)
  - homepage: https://swift.best (fetched 2026-08-29T11:25:48.157907+00:00, sha 27f294826afe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
