# 12207480/TYAttributedLabel

TYAttributedLabel 简单，强大的属性文本控件(无需了解CoreText)，支持图文混排显示，支持添加链接，image和UIView控件，支持自定义排版显示

Repository: https://github.com/12207480/TYAttributedLabel
Canonical: https://ross.abutalabs.com/products/tyattributedlabel
Language: Objective-C
License: MIT
License Family: permissive
Topics: label, attributedlabel, coretext, tyattributedlabel, objective-c, ios
Last push: 2023-03-16T12:46:19+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": 4136, "days_push": 1266, "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 2876, forks 570 (observed 2026-08-28T04:07:27.412862+00:00)

## What it is
TYAttributedLabel is an Objective-C attributed text label component for iOS that hides CoreText complexity while supporting rich text, inline images and UIViews, custom links, and custom layout. It includes a text container for pre-rendering to keep table view scrolling smooth.

## Use cases
- display rich text with inline images in an iOS label
- add tappable links to attributed text without learning CoreText
- embed UIView controls inside a text label
- smooth attributed text rendering in scrolling table view cells
- custom text layout with line and paragraph spacing on iOS
- auto-sizing label height and width with autolayout

## When to choose
- building an iOS app in Objective-C or Swift needing rich text with mixed images and views
- you want CoreText-level text features without CoreText expertise
- you need performant attributed labels in table/collection view scrolling
- you want clickable or long-pressable links and embedded views in text

## When to avoid
- you only need simple plain text labels (UILabel suffices)
- starting a new cross-platform project (iOS-only Objective-C component)
- you need TextKit-based asynchronous rendering (the author recommends TYText instead)
- you need actively developed features - the project is in maintenance with infrequent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, templating
- domain: mobile-development, frontend
- platform: -
- tags: attributed-label, objective-c, rich-text, coretext, cocoapods, text-rendering, ios, mobile

## Member repositories
- 12207480/TYAttributedLabel (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:27.412862+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:35:41.719470+00:00, confidence not recorded.
  - readme: https://github.com/12207480/TYAttributedLabel (fetched 2026-08-28T04:07:27.412862+00:00, sha e885d0b8cb2c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
