-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sections diff improvements #8
Comments
This sounds like a great idea - I don't have time at present to do this, however you're more than welcome to have a go at implementing it, if you'd like to. |
My |
Your Section object just needs to conform to Collection and you'll be good to go |
@bryan1anderson with 2 section where the Iterator Element are the same there is no problem, how can you add 2 sections into an array with different Element? |
@piv199
BUT:
Instead of deleting rows this library wants to delete and insert the whole section at index 1. Should I open a separate bug about it? |
I'd need to check the code, but my understanding is that how this works would be dependent on the implementation of the
I think there is potential to use |
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 some additional data:
Section
- header: String
- items: [Item]
Would it be possible to add new KeyPath feature, for example:
sections.nestedDiff(to: newSections, item: \.items, ...)
The text was updated successfully, but these errors were encountered: