Differ icon indicating copy to clipboard operation
Differ copied to clipboard

Swift library to generate differences and patches between collections.

Results 23 Differ issues
Sort by recently updated
recently updated
newest added

Do we know that is the status of Privacy manifest adoption for this lib? I guess that Differ probably does not need one?

How does this compare with the Swift development proposal that plans to add Ordered Collection Diffing? Are you involved with that project in any way? [https://github.com/apple/swift-evolution/blob/master/proposals/0240-ordered-collection-diffing.md](https://github.com/apple/swift-evolution/blob/master/proposals/0240-ordered-collection-diffing.md)

Question

Hey there, I've started implementing Differ in our app to drive changes to our TableView. As our app needs to support 10.15+, we cannot use the native DiffableSource implementation. So...

Enhancement

Some patches will cause an out of bounds exception (which would crash if directly applied to any tables). This PR adds two test scenarios that show the behavior. I am...

I have performed the following: data before: ``` [ TestData(id: "SECTION_0", rows: [ "S0_R0", "S0_R1", "S0_R2", "S0_R3", "S0_R4", "S0_R5" ]), TestData(id: "SECTION_1", rows: [ "S1_R0", "S1_R1" ]), ] ``` data...

Hi, currently Differ support calculating extended diffs of two dimensional arrays. But what can I do if I have an array of some objects where internal object has array and...

Enhancement
Question

I have the following code: ``` class Item { ... } class Group { ... var items = [Item]() } var groups = [Group]() ``` `groups` is a nested collection...

Add a specific case generated by the random test that crashes with an out-of-bounds access.

Added failing tests from issue #32. The first one gives an access violation (moves out of bounds). The second test, which was based off of the first, just results in...

Bug
Help Wanted

I noticed that sometimes UITableView asserts failure when applying diff with moveRows & moveSections. It's reproducible in the TableViewExample project with some modification to the example data. So far separating...