IGListTransitionDelegate
Objective-C
@protocol IGListTransitionDelegate <NSObject>
Swift
protocol IGListTransitionDelegate
Conform to IGListTransitionDelegate 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 *)listAdapter:(IGListAdapter *)listAdapter customizedInitialLayoutAttributes: (UICollectionViewLayoutAttributes *)attributes sectionController: (IGListSectionController *)sectionController atIndex:(NSInteger)index;Swift
func listAdapter(_ listAdapter: Any!, customizedInitialLayoutAttributes attributes: Any!, sectionController: Any!, atIndex index: Any!) -> Any!Parameters
listAdapterThe adapter controlling the list.
attributesThe starting layout information for an item being inserted into the collection view.
sectionControllerThe section controller to perform the transition on.
indexThe index 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 *)listAdapter:(IGListAdapter *)listAdapter customizedFinalLayoutAttributes: (UICollectionViewLayoutAttributes *)attributes sectionController: (IGListSectionController *)sectionController atIndex:(NSInteger)index;Swift
func listAdapter(_ listAdapter: Any!, customizedFinalLayoutAttributes attributes: Any!, sectionController: Any!, atIndex index: Any!) -> Any!Parameters
listAdapterThe adapter controlling the list.
attributesThe final layout information for an item that is about to be removed from the collection view.
sectionControllerThe section controller to perform the transition on.
indexThe index of the item being deleted.
View on GitHub