RFQuiltLayout icon indicating copy to clipboard operation
RFQuiltLayout copied to clipboard

Added Inter-item spacing like UICollectionViewFlowLayout

Open romanr opened this issue 12 years ago • 3 comments

Implemented declared predrawEverything.

romanr avatar Jan 21 '13 02:01 romanr

Sorry I didn't see this earlier, I don't know how I missed it. I've added this function in the delegate:

  • (UIEdgeInsets) insetsForItemAtIndexPath:(NSIndexPath *)indexPath; // defaults to uiedgeinsetszero

It seems like this is fairly equivalent with minimumInteritemSpacing, will this do for your needs?

bryceredd avatar Feb 21 '13 17:02 bryceredd

Well my branch is diverged as I needed to support iOS5 with PSCollectionView and couldn't find a way to support both ways. I also implemented the missing predrawEverything See branches: https://github.com/bryceredd/RFQuiltLayout/network

romanr avatar Feb 22 '13 08:02 romanr

In most cases users of this library will be migrating from standard FlowLayout so it's best to keep API as close to FlowLayout as possible.

I would recommend calling it minimumInteritemSpacing property to be consistent with naming in Apple's UICollectionViewFlowLayout: http://developer.apple.com/library/ios/#documentation/uikit/reference/UICollectionViewFlowLayout_class/Reference/Reference.html

romanr avatar Feb 22 '13 08:02 romanr

please merge

romanr avatar Feb 06 '23 15:02 romanr