iThink32 / MultiDirectionFlowLayout

A flow layout that allows you to scroll in multiple directions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MultiDirectionFlowLayout

A flow layout that allows you to scroll in multiple directions

Usage :-

First of all this collection view layout is designed to keep the first column and the first row pinned , moreover the rows after below the first will scroll below the first one.Check the gif below for more info.

alt text

Anyway if your fine with this flow then to integrate this follow these steps :

  1. copy the flow layout from this project to yours
  2. Assign the flow layout to your collectionview in your storyboard
  3. There are some IBInspectable properties that you have to set :
cellHeight - this will be the same for all cells
columnWidth - this will be the width of all the cells of the first column
rowWidth - this will be the width of all the cells except the first cell of each column

That's it your good to go , im assuming you have the normal data source and delegate methods set up.

About

A flow layout that allows you to scroll in multiple directions

License:MIT License


Languages

Language:Swift 100.0%