Hi Roshan, I didn’t get your question well, but will try to explain.
MessageViMois a data model class, we have a store variable called dataArray which is an array of this class objects, ie.
var dataArray:[MessageViMo]
We generally get data from some data provider class and keep reloading our views according to the new/changed data.
So when a new set of this array will come into the view controller we just need to calculate the diffs -> set new data to old -> refresh the tableview.

Written by

Artist by birth, programmer by choice. 👨🏻‍💻

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