Currently I'm working on an app that involved presenting data in a UITableView
. I ran into a problem described below.
Problem:
I performed a delete row
operation on the tableview
and then called reloadData()
on the tableview
. While reloading, if I scroll the tableView
immediately, there is a jumpy effect observed in the tableview
.
Here is the code to delete tableview
row,
self.viewModel.data.remove(at: index)
self.tableView.deleteRows(at: [IndexPath(row: index, section: 0)], with: .fade)
self.tableView.reloadData()
I want to know how to resolve this issue. This is the same functionality we can observe while hiding a Facebook/Instagram post.