# eddiekaiger/SwiftyAttributes

A Swifty API for attributed strings

Repository: https://github.com/eddiekaiger/SwiftyAttributes
Canonical: https://ross.abutalabs.com/products/swiftyattributes
Language: Swift
License: MIT
License Family: permissive
Topics: swift, cocoapods, swifty-api, nsattributedstring, macos, ios, watchos, tvos, cocoa, carthage
Last push: 2024-01-02T00:06:00+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3944, "days_push": 975, "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 1628, forks 83 (observed 2026-08-28T04:05:13.248969+00:00)

## What it is
A Swift library providing a fluent, type-safe API for building NSAttributedString instances on Apple platforms. It wraps all Cocoa/Cocoa Touch text attributes in Swift enums and chainable string extensions.

## Use cases
- create attributed strings in swift
- style text with colors and fonts in ios
- combine attributed strings with operators
- replace verbose nsattributedstring code
- apply underline and strikethrough styles to text
- use swift ranges instead of nsrange for text attributes

## When to choose
- building ios, macos, watchos, or tvos apps with styled text
- you want a swifty, chainable alternative to NSAttributedString APIs
- you need support for every Cocoa text attribute with type safety

## When to avoid
- targeting non-Apple platforms like Android or Linux
- your project cannot use Swift 4.2 or later
- you only need trivial single-attribute text styling

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, developer-tools
- domain: mobile-development, developer-tools, cross-platform
- platform: -
- tags: attributed-strings, nsattributedstring, swift, cocoa, text-styling, ios, macos, watchos, tvos

## Member repositories
- eddiekaiger/SwiftyAttributes (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:13.248969+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:48:19.693218+00:00, confidence not recorded.
  - readme: https://github.com/eddiekaiger/SwiftyAttributes (fetched 2026-08-28T04:05:13.248969+00:00, sha 2ad7defc5030)
- Data as of 2026-08-30T08:39:29.467469+00:00.
