Starting with iOS 15, there’s a set of
reconfigure
methods that let you update a cell that’s already on-screen. This allows us to make nice animations to views inside cells, which are not possible with
reloadData
- as it recreates cells from scratch.
In earlier iOS versions it was also possible to update existing cells, by getting on-screen cells with
UITableView.cellForRow(at:)
and updating the state manually.
reconfigure
can do that with less friction, and it can also update the height of the cell.
Check out Tyler’s thread for a deeper dive into the new methods: