WaterfallCollectionView
Waterfall-style implementation of UICollectionView layout
Install / Use
/learn @SureCase/WaterfallCollectionViewREADME
WaterfallCollectionView
WaterfallCollectionView is custom layout for UICollectionView, based on Pinterest style. It supports (sticky or not) header supplementary view and decoration view.
...and now It's in development phase. :)
Sample usage
Setup FRGWaterfallCollectionViewLayout as UICollectionView layout in you view controller.
/*...*/
FRGWaterfallCollectionViewLayout *cvLayout = [[FRGWaterfallCollectionViewLayout alloc] init];
cvLayout.delegate = self;
cvLayout.itemWidth = 140.0f;
cvLayout.topInset = 10.0f;
cvLayout.bottomInset = 10.0f;
cvLayout.stickyHeader = YES;
[self.cv setCollectionViewLayout:cvLayout]; //cv is UICollectionView property
/*...*/
If you want to show section header you should implement delegate method
- (CGFloat) collectionView:(UICollectionView *)collectionView
layout:(FRGWaterfallCollectionViewLayout *)collectionViewLayout
heightForHeaderAtIndexPath:(NSIndexPath *)indexPath;
Screenshots




Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
