Checklist
Detailed Description (Include Screenshots)
So if I have only 1 section in my collection. And I have 2 arrays of elements:
let source: [AnyDifferentiable] = [...]
let target: [AnyDifferentiable] = [...]
And I get the StagedChangeset
let changes = StagedChangeset(source: oldItemsConverted, target: newItemsConverted)
How should I apply these changes to the source array to get the target array? What is the order of changes? Inserts first then moves or different order? Or should I sort the ChangeSet somehow?
I want to implement the element's sizes cache and need to apply all these changes to an array of sizes.
Environment
Checklist
Detailed Description (Include Screenshots)
So if I have only 1 section in my collection. And I have 2 arrays of elements:
And I get the
StagedChangesetHow should I apply these changes to the source array to get the target array? What is the order of changes? Inserts first then moves or different order? Or should I sort the
ChangeSetsomehow?I want to implement the element's sizes cache and need to apply all these changes to an array of sizes.
Environment
Library version: "1.3.0"
Swift version: 5.7
iOS version: any
Xcode version: 14.2
Devices/Simulators: any
CocoaPods/Carthage version: any