I'm trying to digest the reorder transaction of an outline style collectionViewList where each section includes a header as its first item.
After the user performs the reorder I need to apply the transaction information to my data which is stored in core data. (It's an entity that contains a relationship to many instances of the same type - Parent + child)
When I reorder rows I see the following:
What is this offset relative to? It does not seem relative to the section's children. Is the section transaction not intended to describe that?
I guess I'm mostly curious how I should be interpreting this transaction info. I'd prefer not to reconstitute my whole core-data store from the "final snapshot" that's available as part of the transaction.
After the user performs the reorder I need to apply the transaction information to my data which is stored in core data. (It's an entity that contains a relationship to many instances of the same type - Parent + child)
When I reorder rows I see the following:
Moving rows within a section:
The transaction includes a sectionTransaction with no inserts or deletions. (Odd?)
The transaction itself includes a difference which in turn includes the removal and insertion changes of the dragged item. Nice!
What is this offset relative to? It does not seem relative to the section's children. Is the section transaction not intended to describe that?
Moving Rows Between Sections:
I'm getting similar results here. If I take an item form a lower section up to the first section I'll get an offset of "9". Despite expecting an offset of 1 relative to the destination section's top row (because the header is item 0).I guess I'm mostly curious how I should be interpreting this transaction info. I'd prefer not to reconstitute my whole core-data store from the "final snapshot" that's available as part of the transaction.