mokagio/UICollectionViewLeftAlignedLayout
mokagio/UICollectionViewLeftAlignedLayout has 1,299 GitHub stars and 186 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 08:13 UTC. Last push 2023-01-20.
A layout for UICollectionView that aligns the cells to the left.
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalUICollectionView Left Aligned Layout
A UICollectionViewLayout implementation that aligns the cells to the left.

Check out the twin project UICollectionViewRightAlignedLayout
Installation with CocoaPods
platform :ios, '6.0'
pod 'UICollectionViewLeftAlignedLayout'
Usage
Simply set UICollectionViewLeftAlignedLayout as the layout object for your collection view either via code:
CGRect frame = ...
UICollectionViewLeftAlignedLayout *layout = [[UICollectionViewLeftAlignedLayout alloc] init];
UICollectionView *leftAlignedCollectionView = [[UICollectionView alloc] initWithFrame:frame collectionViewLayout:layout];
or from Interface Builder:
img needed here
UICollectionViewLeftAlignedLayout is a subclass of UICollectionViewFlowLayout, so your collection view delegate can use all the delegate methods of UICollectionViewDelegateFlowLayout.
For those of you who like consistency there is an UICollectionViewDelegateLeftAlignedLayout protocol that your delegate object can conform to. Is nothing more than an empty extension of UICollectionViewDelegateFlowLayout.
License
UICollectionViewLeftAlignedLayout is released under the MIT license.
Hacked together with passion by @mokagio
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,755 starspublic-apis/public-apis
A collective list of free APIs
496,973 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
440,618 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,134 stars