Closed sentiasa closed 6 years ago
Any solution to above query yet??
Well, I have found a workaround.
For that you need to subclass you tabbarcontroller
to RAMAnimatedTabBarController
Then in the subclass ovveride the super class' method 'tapHandler
'
override func tapHandler(_ gesture: UIGestureRecognizer) {
super.tapHandler(gesture)
guard let items = tabBar.items as? [RAMAnimatedTabBarItem],
let gestureView = gesture.view else {
fatalError("items must inherit RAMAnimatedTabBarItem")
}
let currentIndex = gestureView.tag
}
can you explain yourself better? Thank's
I have a question. Through
container.tag
(in RAMAnimatedTabBarController) we can access which Tab Bar Item is clicked. How can I get which item is clicked insideplayAnimation()
level?So I can use index number to apply different images for different tabBarItems
I tried something like:
RAMAnimatedTabBarController.tabBar()
etc, but doesn't let me do that.Can you please help me? Thanks