# delba/TextAttributes

An easier way to compose attributed strings

Repository: https://github.com/delba/TextAttributes
Canonical: https://ross.abutalabs.com/products/textattributes
Language: Swift
License: MIT
License Family: permissive
Last push: 2019-11-16T19:46:39+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": 3800, "days_push": 2482, "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 2184, forks 118 (observed 2026-08-28T04:06:23.546091+00:00)

## What it is
A Swift library that simplifies composing NSAttributedString attributes through chainable, strongly-typed setter methods. It wraps the verbose NSAttributedString.Key dictionary API with a fluent interface for fonts, colors, and paragraph styles.

## Use cases
- build attributed strings for iOS labels without dictionary literals
- chain font, color, and paragraph style attributes in Swift
- style NSAttributedString with autocompletion-friendly typed properties
- create reusable text attribute configurations for UIKit text rendering

## When to choose
- you write lots of NSAttributedString code in UIKit and want cleaner, chainable syntax
- you prefer strongly typed attribute setters over raw [NSAttributedString.Key: Any] dictionaries

## When to avoid
- you use SwiftUI exclusively and don't work with NSAttributedString
- you need a library with recent maintenance and latest Swift concurrency support

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, developer-tools
- domain: mobile-development, developer-tools
- platform: -
- tags: attributed-strings, swift, uikit, method-chaining, cocoapods, ios, mobile

## Member repositories
- delba/TextAttributes (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:23.546091+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-30T02:48:13.515707+00:00, confidence not recorded.
  - readme: https://github.com/delba/TextAttributes (fetched 2026-08-28T04:06:23.546091+00:00, sha 840032285b4b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
