babylonhealth/Bento

Crash when moving a section and inserting item in it at the same time

sergdort opened this issue · 0 comments

Description

It seems that UITableView does not like when you move section and insert an item in it at the same time:

Example

If we have sections transitions:
[1, 2] - [3, 4] -> [1, 2] - [5] - [6, 3, 4]

As you can see we insert new sections [5] and move [3, 4] and at the same time insert an item 6

Proposed solution

The solution is to treat moves of the sections as removal and insertion