# BenEmdon/CenteredCollectionView

A lightweight UICollectionViewLayout that 'pages' and centers its cells 🎡 written in Swift

Repository: https://github.com/BenEmdon/CenteredCollectionView
Canonical: https://ross.abutalabs.com/products/centeredcollectionview
Language: Swift
License: MIT
License Family: permissive
Topics: ios, carousel, uicollectionview, uicollectionviewflowlayout, uicollectionviewlayout, tvos, cocoapods, carthage, swift, center, spm
Last push: 2021-01-20T08:28:57+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": 3652, "days_push": 2051, "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 1483, forks 111 (observed 2026-08-28T04:04:51.228605+00:00)

## What it is
A lightweight Swift UICollectionViewFlowLayout subclass that pages and keeps its cells centered, producing a carousel effect. It supports iOS and tvOS and installs via Swift Package Manager, CocoaPods, or Carthage.

## Use cases
- build a carousel of cards in a UICollectionView
- create a paging image gallery with centered cells
- implement a horizontally scrolling picker with snap-to-center behavior
- add a cover-flow style product carousel to an iOS app
- make a tvOS browsing carousel

## When to choose
- you need a drop-in carousel effect on top of UICollectionViewFlowLayout
- you want a lightweight Swift library with SPM/CocoaPods/Carthage support
- you target iOS 9+ or tvOS

## When to avoid
- you need a fully featured carousel with infinite looping and custom animations
- your project uses SwiftUI exclusively
- you need actively developed features (last release was 2021)

## Facets
- artifact type: library
- maturity: maintenance
- function: ui-components, animation
- domain: mobile-development
- platform: -
- tags: carousel, uicollectionview, paging, tvos, cocoapods, swift-package-manager, ios, swift

## Member repositories
- BenEmdon/CenteredCollectionView (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:51.228605+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-30T04:34:01.543018+00:00, confidence not recorded.
  - readme: https://github.com/BenEmdon/CenteredCollectionView (fetched 2026-08-28T04:04:51.228605+00:00, sha 7e718debc5d6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
