Slide 10
Slide 10 text
performBatchUpdates can partially update
items with animations
let deleteIndexPaths: [IndexPath]
let insertIndexPaths: [IndexPath]
let moveIndexPaths: (from: IndexPath, to: IndexPath)
let reloadIndexPaths: [IndexPath]
tableView.performBatchUpdates({
tableView.deleteRows(at: deleteIndexPaths, with: .automatic)
tableView.insertRows(at: insertIndexPaths, with: .automatic)
tableView.moveRow(at: moveIndexPaths.from, to: moveIndexPaths.to)
tableView.reloadRows(at: reloadIndexPaths, with: .automatic)
})