# zekunyan/TTGTagCollectionView

Useful for showing text or custom view tags in a vertical or horizontal scrollable view and support Autolayout at the same time. It is highly customizable that most features of the text tag can be configured. 标签流显示控件，同时支持文字或自定义View

Repository: https://github.com/zekunyan/TTGTagCollectionView
Canonical: https://ross.abutalabs.com/products/ttgtagcollectionview
Language: Swift
License: MIT
License Family: permissive
Topics: ios, tags, ui, objective-c, layout-engine, swift, swift5, swiftui
Last push: 2026-06-24T15:34:28+00:00

## Health v2 (maintenance only)
Score: 72/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 89, release rhythm 35, longevity 100
- inputs: {"age_days": 3899, "days_push": 70, "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 1900, forks 264 (observed 2026-08-28T04:05:51.518720+00:00)

## What it is
TTGTagCollectionView is a Swift-first iOS UI component for displaying text or custom view tags in vertically wrapping or horizontally scrolling layouts with full AutoLayout support. It offers highly customizable per-tag styling including gradients, borders, shadows, corner radius, and selection states.

## Use cases
- show filter chips in an ios app
- display topic labels that wrap in a collection
- render search facet tags in a scrollable row
- add tag views to self-sizing table cells
- build custom tag views with arbitrary uiview content
- lay out dense tag rows in forms with autolayout

## When to choose
- you need a native iOS tag/chip layout with wrapping or horizontal scrolling
- you want per-tag styling like gradients, borders, and selected states
- you need AutoLayout-friendly intrinsic sizing in stack views or self-sizing cells
- you need both Swift and Objective-C compatibility

## When to avoid
- you are building for Android or cross-platform frameworks
- you need a grid or complex collection layout beyond tag flows
- your project targets iOS below 16.0

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, animation
- domain: mobile-development, frontend, web-design
- platform: -
- tags: tag-collection-view, autolayout, swiftui, objective-c-compatible, cocoapods, spm, ios, swift, mobile

## Member repositories
- zekunyan/TTGTagCollectionView (main) score 72

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:51.518720+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:12:05.299338+00:00, confidence not recorded.
  - readme: https://github.com/zekunyan/TTGTagCollectionView (fetched 2026-08-28T04:05:51.518720+00:00, sha d0f1b764c538)
- Data as of 2026-08-30T08:39:29.467469+00:00.
