njdehoog/NHBalancedFlowLayout
UICollectionViewLayout subclass for displaying items of different sizes in a grid without wasting any visual space. Inspired by: http://www.crispymtn.com/stories/the-algorithm-for-a-perfectly-balanced-photo-gallery observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4682
- days_rel: n/a
- days_push: 3840
- n_releases_24m: 0
Adoption not part of the score
1337 stars · 101 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A UICollectionViewLayout subclass for iOS that displays items of different sizes in a grid without wasting visual space, using a balanced photo gallery algorithm. It is written in Objective-C and distributed via CocoaPods.
Use cases
- display photos of different sizes in a balanced grid on iOS
- create a masonry-style photo gallery in a UICollectionView
- avoid wasted space when laying out variable-sized items
- build a perfectly balanced image gallery layout
- show mixed-size thumbnails in a grid without gaps
When to choose
- you need a space-efficient, balanced grid layout for variable-sized items in an iOS UICollectionView
- you are building a photo gallery on iOS 6/7 with Objective-C
When to avoid
- you need a maintained library - this project is explicitly no longer maintained
- you are targeting modern iOS with Swift or SwiftUI
- you need layouts beyond balanced photo-grid arrangements
Facets
library · maturity abandoned
ui-components graphics mobile-development frontend graphics uicollectionviewlayout photo-gallery objective-c grid-layout cocoapods ios mobile swift
1 source
- readme: https://github.com/njdehoog/NHBalancedFlowLayout · fetched 2026-08-28 · 006bab74c9b3
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| njdehoog/NHBalancedFlowLayout | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="njdehoog/NHBalancedFlowLayout")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem