# chiahsien/CHTCollectionViewWaterfallLayout

The waterfall (i.e., Pinterest-like) layout for UICollectionView.

Repository: https://github.com/chiahsien/CHTCollectionViewWaterfallLayout
Canonical: https://ross.abutalabs.com/products/chtcollectionviewwaterfalllayout
Language: Objective-C
License: MIT
License Family: permissive
Topics: uicollectionview, pinterest, uicollectionviewlayout, waterfall-layout
Last push: 2026-03-18T15:51:55+00:00

## Health v2 (maintenance only)
Score: 79/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 72, release rhythm 75, longevity 100
- inputs: {"age_days": 5032, "days_push": 168, "days_rel": 168, "gap_med": 4, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4614, forks 688 (observed 2026-08-28T04:08:55.094109+00:00)

## What it is
A UICollectionViewLayout subclass for iOS/tvOS that arranges collection view items in a Pinterest-like waterfall (masonry) layout. It mimics UICollectionViewFlowLayout's API, supports headers/footers, per-section column counts, and handles 10,000+ items smoothly.

## Use cases
- build a Pinterest-style image grid in an iOS app
- display variable-height cards in a masonry layout with UICollectionView
- show different column counts per section in a collection view
- add header and footer views to a waterfall layout
- render thousands of items in a waterfall grid with smooth scrolling

## When to choose
- you need a Pinterest/masonry waterfall layout on iOS or tvOS
- you want a drop-in UICollectionViewLayout subclass with a familiar flow-layout-like API
- you need per-section column counts, headers, and footers
- you need both Swift and Objective-C implementations with SPM/CocoaPods support

## When to avoid
- you are not building with UIKit UICollectionView (e.g., SwiftUI-only without UIKit interop)
- you need a uniform grid where UICollectionViewFlowLayout suffices
- you target iOS versions below 13
- you need cross-platform (Android/web) masonry layouts

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, animation
- domain: mobile-development, frontend, web-design
- platform: -
- tags: uicollectionview, uicollectionviewlayout, waterfall-layout, pinterest-style, objective-c, swift-package-manager, cocoapods, ios, mobile, swift

## Member repositories
- chiahsien/CHTCollectionViewWaterfallLayout (main) score 79

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:55.094109+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-29T18:19:41.307061+00:00, confidence not recorded.
  - readme: https://github.com/chiahsien/CHTCollectionViewWaterfallLayout (fetched 2026-08-28T04:08:55.094109+00:00, sha a28f41cc3dd8)
- Data as of 2026-08-30T08:39:29.467469+00:00.
