Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 964 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 964 Bytes

Description

Lays out a UICollectionView as if it were an Excel spreadsheet. The top row and the left column are sticky when scrolling. Because it behaves like a spreadsheet, this implies that the column width of each cell are determined by the column size, likewise the height of each cell is determined by the row height.

This was forked from Brightec's CustomCollectionViewLayout

Difference from original

Brightec's version does everything in the prepareLayout method. I rewrote the class and split the logic among UICollectionViewLayout's delegate methods. Additionally, I added some caching behavior to reduce calculation time.

I also created a delegate for the SpreadsheetLayout. The delegate simply asks for the column size and row height.

KENO