Closed kwstasna closed 6 years ago
I think you need to subclass "RAMAnimatedTabBarController" to your tapBarController.
For that you need to subclass you tabbarcontrollerto RAMAnimatedTabBarController Then in the subclass ovveride the super class' method 'tapHandler'
override func tapHandler(_ gesture: UIGestureRecognizer) {
super.tapHandler(gesture)
let currentNavigationController = ...
currentNavigationController.popToRootViewController(animated: false)
}
Hello. I'm currently using your library to make animations to my tap bar items. My hierarcy is this
UINavigationTabBar > UINavigationController > UIViewController
Now the animation works perfect. But i wanted to implement some function in my "Home" tab bar item to go to the top of the UICollectionView if its active and its tapped. Something like Instagram - Facebook has. So i created a swift file for the tap bar controller and there i implemented this codeimport UIKit import RAMAnimatedTabBarController
From Storyboard i deleted the class of
RAMAnimatedTabBarController
and I inserted the name of my new swift classtapBarController
. Of course the back to top functionality works but the animation has stopped working. Wanted to ask you how can i implement the back to top function with your animations? Hope you can help me with this and also i'm trying to figure out.P.S. It would be nice if you have also this function in any update !