It was in WWDC 2019, apple decided to improve UI datasources. That day, developers got introduced to new diffable datasource api for tableviews and collections views.

https://developer.apple.com/videos/play/wwdc2019/220/

History

If you have worked on tableviews, then you must have come across this famous error on your console.

** ‘NSInternalInconsistencyException’, reason: ‘Invalid update: invalid number of rows in section 0. The number of rows contained in an existing section after the update (2) must be equal to the number of rows contained in that section before the update (2), plus or minus the number of rows inserted or deleted from that section (0…

Vinay Hosamane

iOS App Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store