IGListBatchUpdateData
@interface IGListBatchUpdateData : NSObject
This object takes section indexes and item index paths and performs cleanup on init in order to perform a crash-free update via -[UICollectionView performBatchUpdates:completion:].
-
Clean section insert indexes.
Declaration
Objective-C
@property (readonly, strong, nonatomic) NSIndexSet *_Nonnull insertSections; -
Clean section delete indexes.
Declaration
Objective-C
@property (readonly, strong, nonatomic) NSIndexSet *_Nonnull deleteSections; -
Clean section moves.
Declaration
Objective-C
@property (readonly, strong, nonatomic) NSSet<IGListMoveIndex *> *_Nonnull moveSections; -
Clean item insert index paths.
Declaration
Objective-C
@property (readonly, strong, nonatomic) NSSet<NSIndexPath *> *_Nonnull insertIndexPaths; -
Clean item delete index paths.
Declaration
Objective-C
@property (readonly, strong, nonatomic) NSSet<NSIndexPath *> *_Nonnull deleteIndexPaths; -
Clean item reload index paths.
Declaration
Objective-C
@property (readonly, strong, nonatomic) NSSet<NSIndexPath *> *_Nonnull reloadIndexPaths; -
-initWithInsertSections:deleteSections:moveSections:insertIndexPaths:deleteIndexPaths:reloadIndexPaths:Create a new batch update object with section and item operations.
Declaration
Objective-C
- (nonnull instancetype) initWithInsertSections:(nonnull NSIndexSet *)insertSections deleteSections:(nonnull NSIndexSet *)deleteSections moveSections:(nonnull NSSet<IGListMoveIndex *> *)moveSections insertIndexPaths:(nonnull NSSet<NSIndexPath *> *)insertIndexPaths deleteIndexPaths:(nonnull NSSet<NSIndexPath *> *)deleteIndexPaths reloadIndexPaths:(nonnull NSSet<NSIndexPath *> *)reloadIndexPaths;Parameters
insertSectionsSection indexes to insert.
deleteSectionsSection indexes to delete.
moveSectionsSection moves.
insertIndexPathsItem index paths to insert.
deleteIndexPathsItem index paths to delete.
reloadIndexPathsItem index paths to reload.
Return Value
A new batch update object with cleaned update operations.
-
Undocumented
Declaration
Objective-C
@interface IGListBatchUpdateData : NSObject -
Undocumented
Declaration
Objective-C
@interface IGListBatchUpdateData : NSObject
View on GitHub
IGListBatchUpdateData Class Reference