IOS Tabbar scrolling animation: Text changing color on touch with indicator view

I want to make an animation that when you scroll the tabbar, the indicator view follow and when it touch on the text of the tab, that text change color only the part it being touched.
Example like in the picture below.

How can I achieve this ? I have been racking my brain the whole day and no solution come to mind.

Leave a Reply

Your email address will not be published. Required fields are marked *