Bento
Bento copied to clipboard
Glitch with delete animation
Description
It seems like there is an issue with delete animation if the state of the table view changes quickly (e.g during the delete transition transition)
Proposed solution
make delete
call on the component after transaction finishes
sections[indexPath.section].items.remove(at: indexPath.row)
CATransaction.begin()
CATransaction.setCompletionBlock {
component.delete()
}
actionPerformed?(true)
tableView?.deleteRows(at: [indexPath], with: .left)
CATransaction.commit()
Before | After |
---|---|
![]() |
![]() |
TBH I can't see much of a difference / improvement 🤷🏼♀️
@mluisbrown look at the row that is being removed
#50 resolves common scenarios that are affected, but some edge cases are not handled.