# GitHawkApp/StyledTextKit

Declarative building and fast rendering attributed string library.

Repository: https://github.com/GitHawkApp/StyledTextKit
Canonical: https://ross.abutalabs.com/products/styledtextkit
Homepage: http://githawk.com
Language: Swift
License: MIT
License Family: permissive
Topics: swift, nsattributedstring, text, textkit, githawk
Last push: 2022-03-03T08:34:46+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3164, "days_push": 1644, "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 1212, forks 58 (observed 2026-08-28T04:04:00.293401+00:00)

## What it is
StyledTextKit is a Swift library for declaratively building NSAttributedString instances and rendering them quickly, including background-thread text sizing and bitmap caching. It was built for GitHawk to make scrolling large amounts of rich text smooth on iOS.

## Use cases
- build attributed strings declaratively in swift
- render text bitmaps off the main thread for smooth scrolling
- measure text size on a background thread without sanitizer warnings
- handle link taps and custom attribute interactions in text views
- support dynamic type by re-rendering strings on content size changes
- replace UILabel and NSAttributedString boilerplate in an iOS app

## When to choose
- you need fast, smooth scrolling of large amounts of rich text on iOS
- you want a declarative builder API instead of manual NSAttributedString styling
- you need background-thread text sizing and bitmap caching
- you need custom tap/long-press handling on text attributes like links

## When to avoid
- you are not building an iOS/UIKit app
- you need editable rich text input rather than rendering
- you need cross-platform text rendering
- you need an actively maintained library - the latest release was in 2022

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, graphics
- domain: mobile-development, developer-tools
- platform: -
- tags: attributed-string, textkit, text-rendering, uikit, cocoapods, ios, swift

## Member repositories
- GitHawkApp/StyledTextKit (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:00.293401+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-30T06:17:58.197784+00:00, confidence not recorded.
  - readme: https://github.com/GitHawkApp/StyledTextKit (fetched 2026-08-28T04:04:00.293401+00:00, sha df8e08d0831b)
  - homepage: http://githawk.com (fetched 2026-08-29T12:25:39.522225+00:00, sha 2ea5364539a7)
  - site_page: https://nc.me/faq (fetched 2026-08-29T12:25:39.531094+00:00, sha fbbcd17d2179)
- Data as of 2026-08-30T08:39:29.467469+00:00.
