IGListCollectionViewDelegateLayout
Objective-C
@protocol
IGListCollectionViewDelegateLayout <UICollectionViewDelegateFlowLayout>
Swift
protocol IGListCollectionViewDelegateLayout : UICollectionViewDelegateFlowLayout
Conform to IGListCollectionViewDelegateLayout to provide customized layout information for a collection view.
-
Asks the delegate to customize and return the starting layout information for an item being inserted into the collection view.
Declaration
Objective-C
- (UICollectionViewLayoutAttributes *)collectionView: (UICollectionView *)collectionView layout:(UICollectionViewLayout *) collectionViewLayout customizedInitialLayoutAttributes: (UICollectionViewLayoutAttributes *)attributes atIndexPath:(NSIndexPath *)indexPath;Swift
func collectionView(_ collectionView: UICollectionView!, layout collectionViewLayout: UICollectionViewLayout!, customizedInitialLayoutAttributes attributes: UICollectionViewLayoutAttributes!, at indexPath: IndexPath!) -> UICollectionViewLayoutAttributes!Parameters
collectionViewThe collection view to perform the transition on.
collectionViewLayoutThe layout to use with the collection view.
attributesThe starting layout information for an item being inserted into the collection view.
indexPathThe index path of the item being inserted.
-
Asks the delegate to customize and return the final layout information for an item that is about to be removed from the collection view.
Declaration
Objective-C
- (UICollectionViewLayoutAttributes *) collectionView:(UICollectionView *)collectionView layout: (UICollectionViewLayout *)collectionViewLayout customizedFinalLayoutAttributes: (UICollectionViewLayoutAttributes *)attributes atIndexPath:(NSIndexPath *)indexPath;Swift
func collectionView(_ collectionView: UICollectionView!, layout collectionViewLayout: UICollectionViewLayout!, customizedFinalLayoutAttributes attributes: UICollectionViewLayoutAttributes!, at indexPath: IndexPath!) -> UICollectionViewLayoutAttributes!Parameters
collectionViewThe collection view to perform the transition on.
collectionViewLayoutThe layout to use with the collection view.
attributesThe final layout information for an item that is about to be removed from the collection view.
indexPathThe index path of the item being deleted.
View on GitHub