Glitch with delete animation
sergdort opened this issue · comments
sergdort commented
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 |
---|---|
Michael Brown commented
TBH I can't see much of a difference / improvement 🤷🏼♀️
sergdort commented
@mluisbrown look at the row that is being removed