Let’s animate TableView Cells
One of the tricks you can do with Tableviews is to animate the table cells, I will show you 2 style of animations you can do with TableviewCells, and you will get the main idea of how can you animate cells and then you have all the freedom to play around animating your TableviewCells with any style you like.
First style we will do you can see it in this video
Let’s see how we did that, First of all, you need a basic tableView with a cell, and we have just a basic cell here, have just one label on it.

We have our basic data source which will be an array


In our TableCell class all we do is just we need to change the text of the label

So all we have to do now is to implement our animation.
First of all we need to write the function that will animate our cells.

So It will take one parameter which is our tableview in this case. And then we need to access the visible cells by this line

And then we need to get the height of our table view

And we will loop through each cell. And add some delay to each cell.
And animate each cell using this for loop.

And then in the view did appear, we need to call our function

Second Style
The second style you can see it here.
All we need to change is

Here is the change

So we check if the index of the cell is Even number if it’s even so we will translate X by 1000, and if it’s odd we will translate our cell horizontally by -1000.
And all the rest of the function is the same as the first style we did.
I hope you enjoyed this post.
You can download the demo from here