The check for if (item > 0) is outdated now. If it is newlining it should always add the line spacing to the Y offset.
Nevermind, line spacing should only affect spacing between items in the same section.
How can i make line spacing between sections?
In the example, I can use IGListGridCollectionViewLayout to set minimumLineSpacing and minimumInteritemSpacing. However, I can't do it with IGListCollectionViewLayout.
@HowardCsie you should be able to use the inset in your section controller which will add spacing to the top/left/right/bottom between sections. If you want spacing between items use minimumLineSpacing or minimumInteritemSpacing.
There's a few docs on how this works, but the tests have more explicit examples on how it should all work.
@rnystrom So in order to achive the same effect like instagram grid, we should set the
self.minimumInteritemSpacing=1.0;
self.inset=UIEdgeInsetsMake(0.5, 0, 0.5, 0);
in gridSectioncontroller's init method.
to make each section have 1 px padding around.