Closed joaoh82 closed 6 years ago
+1
@seven-ply @joaoh82 you do this
let animatedTabBar = self.tabBarController as! RAMAnimatedTabBarController
animatedTabBar.setSelectIndex(from: self.tabBarController!.selectedIndex, to: 2)
@kuyazee you're awesome man. This works. Thank you very much.
I need to change the selected TabBar programatically and usually I would do it just like this.
self.tabBarController?.selectedIndex = 2
And it is working, but how do I do that and animate and change the selected tabbar icon to the correct one?
Thanks