# malcommac/SwiftRichString

👩‍🎨 Elegant Attributed String composition in Swift sauce

Repository: https://github.com/malcommac/SwiftRichString
Canonical: https://ross.abutalabs.com/products/swiftrichstring
Language: Swift
License: MIT
License Family: permissive
Topics: attributedstring, swift-library, nsattributedstring, swift, typography, text-formatting, dynamic-type, xml-parsing, text, auto-layout
Last push: 2023-07-18T15:28:52+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3555, "days_push": 1142, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3145, forks 211 (observed 2026-08-28T04:07:45.967411+00:00)

## What it is
A lightweight Swift library for elegantly creating and manipulating attributed strings on iOS, macOS, tvOS, and watchOS. It supports declarative style composition, reusable style groups, XML/HTML tag-based string rendering, and Interface Builder integration.

## Use cases
- style attributed strings in swift with a declarative syntax
- render html or xml tagged text in a uilabel
- apply reusable typography styles across an ios app
- support dynamic type in attributed text
- embed images inside formatted text
- build styled strings with hex colors and custom fonts

## When to choose
- you need concise, reusable attributed string styling in Swift across Apple platforms
- you want to render simple XML/HTML-tagged text without a full HTML engine
- you want a dependency-free library with Interface Builder support

## When to avoid
- you need full HTML/CSS rendering of complex documents
- your project is not on the Apple/Swift ecosystem
- you need a library under very active development with frequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, parser, templating
- domain: frontend, mobile-development, text-editors, web-development
- platform: cross-platform
- tags: attributed-string, nsattributedstring, typography, text-formatting, dynamic-type, xml-parsing, html-rendering, swift, ios, macos

## Member repositories
- malcommac/SwiftRichString (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:45.967411+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:25:58.856656+00:00, confidence not recorded.
  - readme: https://github.com/malcommac/SwiftRichString (fetched 2026-08-28T04:07:45.967411+00:00, sha e96515502876)
- Data as of 2026-08-30T08:39:29.467469+00:00.
