RFQuiltLayout
A UICollectionViewLayout subclass to put items in a quilting pattern
Install / Use
/learn @bryceredd/RFQuiltLayoutREADME
RFQUILTLAYOUT
RFQuiltLayout is a UICollectionViewLayout subclass, used as the layout object of UICollectionView.

Installation
Add the layout as the subclass of your UICollectionViewLayout.

Make sure you set the delegate of the flow layout
- (void) viewDidLoad {
// ...
RFQuiltLayout* layout = (id)[self.collectionView collectionViewLayout];
layout.direction = UICollectionViewScrollDirectionVertical;
layout.blockPixels = CGSizeMake(100, 100);
}
- (CGSize) blockSizeForItemAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.row % 2 == 0)
return CGSizeMake(2, 1);
return CGSizeMake(1, 2);
}
(Note: all delegate methods and properties are optional)
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate 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
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
