IGListIndexSetResult
Objective-C
@interface IGListIndexSetResult : NSObject
                Swift
class ListIndexSetResult : NSObject
                A result object returned when diffing with indexes.
- 
                  
                  
The indexes inserted into the new collection.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSIndexSet *_Nonnull inserts;Swift
var inserts: IndexSet { get } - 
                  
                  
The indexes deleted from the old collection.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSIndexSet *_Nonnull deletes;Swift
var deletes: IndexSet { get } - 
                  
                  
The indexes in the old collection that need updated.
Declaration
Objective-C
@property (nonatomic, strong, readonly) NSIndexSet *_Nonnull updates;Swift
var updates: IndexSet { get } - 
                  
                  
The moves from an index in the old collection to an index in the new collection.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSArray<IGListMoveIndex *> *_Nonnull moves;Swift
var moves: [ListMoveIndex] { get } - 
                  
                  
A Read-only boolean that indicates whether the result has any changes or not.
YESif the result has changes,NOotherwise.Declaration
Objective-C
@property (nonatomic, readonly) BOOL hasChanges;Swift
var hasChanges: Bool { get } - 
                  
                  
Returns the index of the object with the specified identifier before the diff.
Declaration
Objective-C
- (NSInteger)oldIndexForIdentifier:(nonnull id<NSObject>)identifier;Swift
func oldIndex(forIdentifier identifier: any NSObjectProtocol) -> IntParameters
identifierThe diff identifier of the object.
Return Value
The index of the object before the diff, or
NSNotFound. - 
                  
                  
Returns the index of the object with the specified identifier after the diff.
Declaration
Objective-C
- (NSInteger)newIndexForIdentifier:(nonnull id<NSObject>)identifier;Swift
func newIndex(forIdentifier identifier: any NSObjectProtocol) -> IntParameters
identifierThe diff identifier of the object.
Return Value
The index path of the object after the diff, or
NSNotFound. - 
                  
                  
Creates a new result object with operations safe for use in
UITableViewandUICollectionViewbatch updates.Declaration
Objective-C
- (nonnull IGListIndexSetResult *)resultForBatchUpdates;Swift
func forBatchUpdates() -> ListIndexSetResult 
View on GitHub