RFQuiltLayout
RFQuiltLayout copied to clipboard
Delegate Methods
Hello. Please make delegate methods of the layout to apple style, for easy manage of multiple collection views. Delegate mehtods:
- (CGSize) blockSizeForItemAtIndexPath:(NSIndexPath *)indexPath;
- (UIEdgeInsets) insetsForItemAtIndexPath:(NSIndexPath *)indexPath; i am can not recognize which grid view called them. So my propose is:
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)layout blockSizeForItemAtIndexPath:(NSIndexPath *)indexPath;
- (UIEdgeInsets) collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)layout insetsForItemAtIndexPath:(NSIndexPath *)indexPath; It gives elegant access to UICollectionView and its layout. Thanks. Sorry for my English.
Send me a PR, I'll merge it in. On Sun, Nov 23, 2014 at 4:09 PM Dmitry [email protected] wrote:
Hello. Please make delegate methods of the layout to apple style, for easy manage of multiple collection views. Delegate mehtods:
- (CGSize) blockSizeForItemAtIndexPath:(NSIndexPath *)indexPath;
- (UIEdgeInsets) insetsForItemAtIndexPath:(NSIndexPath *)indexPath; i am can not recognize which grid view called them. So my propose is:
- (CGSize)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)layout blockSizeForItemAtIndexPath:(NSIndexPath *)indexPath;
- (UIEdgeInsets) collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)layout insetsForItemAtIndexPath:(NSIndexPath *)indexPath; It gives elegant access to UICollectionView and its layout. Thanks. Sorry for my English.
— Reply to this email directly or view it on GitHub https://github.com/bryceredd/RFQuiltLayout/issues/27.