# airbnb/MagazineLayout

A collection view layout capable of laying out views in vertically scrolling grids and lists.

Repository: https://github.com/airbnb/MagazineLayout
Canonical: https://ross.abutalabs.com/products/magazinelayout
Language: Swift
License: Apache-2.0
License Family: permissive
Last push: 2026-07-30T22:15:59+00:00

## Health v2 (maintenance only)
Score: 75/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 95, release rhythm 35, longevity 100
- inputs: {"age_days": 2847, "days_push": 34, "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 3376, forks 223 (observed 2026-08-28T04:07:58.505643+00:00)

## What it is
MagazineLayout is a UICollectionViewLayout subclass for laying out vertically scrolling grids and lists on iOS. It extends UICollectionViewFlowLayout with fractional-width items, vertical-only self-sizing, sticky headers/footers, section backgrounds, and customizable insert/delete animations.

## Use cases
- build a vertically scrolling grid layout in a UICollectionView
- create a list layout similar to UITableView using collection views
- self-size collection view items in the vertical dimension only
- add sticky pinned headers and footers to collection view sections
- customize insert and delete animations for collection view items
- mix full-width and half-width items in the same collection view
- show or hide headers, footers, and section backgrounds per section

## When to choose
- you need grid or list layouts that UICollectionViewFlowLayout cannot express, like fractional item widths or per-item self-sizing
- you want sticky headers/footers and section backgrounds with per-section control
- you are building content-heavy iOS screens like search results or feeds

## When to avoid
- you need horizontal scrolling or non-grid/non-list layouts
- you are building with SwiftUI rather than UIKit collection views
- a simple flow layout already meets your needs and you want to avoid a dependency

## Facets
- artifact type: library
- maturity: stable
- function: ui-components, animation
- domain: mobile-development, frontend
- platform: -
- tags: uikit, collection-view-layout, grid-layout, list-layout, self-sizing, swift-package-manager, cocoapods, ios, swift, mobile

## Member repositories
- airbnb/MagazineLayout (main) score 75

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:58.505643+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:39:43.251288+00:00, confidence not recorded.
  - readme: https://github.com/airbnb/MagazineLayout (fetched 2026-08-28T04:07:58.505643+00:00, sha fb03726c3c15)
- Data as of 2026-08-30T08:39:29.467469+00:00.
