CollectionViewResultsProxy
public class CollectionViewResultsProxy : CustomDebugStringConvertible
A Helper to convert data set changes into collection view edits
-
Declaration
Swift
public var debugDescription: String { get } -
Add an item change
Declaration
Swift
public func addChange(forItemAt source: IndexPath?, with changeType: ResultsControllerChangeType)Parameters
sourceThe source index path of the section
changeTypeThe change type
-
Add a section change
Declaration
Swift
public func addChange(forSectionAt source: IndexPath?, with changeType: ResultsControllerChangeType)Parameters
sourceThe source index path of the section
changeTypeThe change type
-
The count of changes in the set
Declaration
Swift
public var count: Int { get } -
Merge this set with another
Declaration
Swift
public func union(with other: CollectionViewResultsProxy)Parameters
otherAnother change set
-
Create a proxy for a set of edits in one section
Declaration
Swift
public func addEdits<T: Collection>(from edits: EditDistance<T>, for section: Int = 0) where T.Iterator.Element: Hashable, T.Index == IntParameters
editsA set of EditDistance Edits
sectionThe section the changes should apply to
Return Value
A new proxy with the edits added