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

    source

    The source index path of the section

    changeType

    The change type

  • Add a section change

    Declaration

    Swift

    public func addChange(forSectionAt source: IndexPath?, with changeType: ResultsControllerChangeType)

    Parameters

    source

    The source index path of the section

    changeType

    The 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

    other

    Another 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 == Int

    Parameters

    edits

    A set of EditDistance Edits

    section

    The section the changes should apply to

    Return Value

    A new proxy with the edits added