DeepDiff icon indicating copy to clipboard operation
DeepDiff copied to clipboard

Diff for sectioned table views and collection views

Open larryonoff opened this issue 7 years ago • 7 comments

Current API only supports diffs of two arrays. But iOS table views and collection views often needs support for sections. It can be represented as array of arrays.

Is it possible to add support for diff of array of arrays?

larryonoff avatar Nov 10 '17 14:11 larryonoff

@larryonoff Hi, it does not work (as of my implementation of Wagner Fischer and Heckel algorithms) for array of arrays yet. I just made some changes to calculate IndexPath for a specific section in this release https://github.com/onmyway133/DeepDiff/releases/tag/1.1.1 which partly solves the problem

onmyway133 avatar Jan 22 '18 09:01 onmyway133

@larryonoff Hi, I'm doing the diff for sections now to serve this https://github.com/hyperoslo/Upstream. Will keep you posted

onmyway133 avatar Feb 08 '18 09:02 onmyway133

Hey @onmyway133, thanks for writing DeepDiff :) Is there an update on diffing sections without using Upstream? I'm looking forward to add it as a diffing engine in my table/collection manager, let me know!

riteshhgupta avatar Jun 02 '18 04:06 riteshhgupta

@larryonoff @onmyway133 @riteshhgupta Hi, I'm working on ReactComponentKit. It uses DeepDiff to diff for UICollectionView or UITableView. Thanks, @onmyway133. Also, It uses Redux and Component concept like React. There is some example of ReactComponentKit. I want to it helps you. :)

Best Regards,

skyfe79 avatar Sep 02 '18 05:09 skyfe79

@riteshhgupta Hi, I'm quite busy atm so not sure if I can add support for section now @skyfe79 Looks like a nice combo, I like it a lot. Just added it to my curation https://github.com/onmyway133/fantastic-ios-architecture. Also for layout, have you considered this https://github.com/onmyway133/Anchors 😉

onmyway133 avatar Sep 02 '18 13:09 onmyway133

@onmyway133 Really thanks for the listing! Anchors is awesome to me. I'll use it and considering remove SnapKit. Anchors is great! :)

skyfe79 avatar Sep 03 '18 01:09 skyfe79

@riteshhgupta I found this issue having the same feature request, but ended up using https://github.com/tonyarnold/Differ instead. It has sectioned diffing out-of-the-box, I recommend checking it out.

stami avatar Oct 19 '18 14:10 stami