DittoDiff

public struct DittoDiff
extension DittoDiff: Decodable
extension DittoDiff: Equatable

Represents a diff between two arrays.

Create a diff between arrays of DittoQueryResultItems using a DittoDiffer.

  • The set of indexes in the new array at which new items have been inserted.

    Declaration

    Swift

    public let insertions: IndexSet
  • The set of indexes in the old array at which old items have been deleted.

    Declaration

    Swift

    public let deletions: IndexSet
  • The set of indexes in the new array at which items have been updated.

    Declaration

    Swift

    public let updates: IndexSet
  • A set of tuples each representing a move of an item from a particular index in the old array to a particular index in the new array.

    Declaration

    Swift

    public let moves: [(from: Int, to: Int)]

Decodable

  • Declaration

    Swift

    public init(from decoder: Decoder) throws

Equatable

  • Declaration

    Swift

    public static func == (lhs: DittoDiff, rhs: DittoDiff) -> Bool