Closed arden closed 8 years ago
Yes. Something like this:
class TabBarController: RAMAnimatedTabBarController {
override func viewDidLoad() {
let tabAnimation = RAMBounceAnimation()
tabAnimation.textSelectedColor = .redColor()
tabAnimation.iconSelectedColor = .redColor()
let tabBarItem = RAMAnimatedTabBarItem(title: "Example", image: UIImage(named: "Example"), selectedImage: nil)
tabBarItem.textColor = .blackColor()
tabBarItem.iconColor = .blackColor()
tabBarItem.animation = tabAnimation
let navigationController = UINavigationController(rootViewController: UIViewController())
navigationController?.tabBarItem = tabBarItem
viewControllers = [navigationController!]
super.viewDidLoad()
}
+1 for the above suggestion. This would be very useful
But it's already supported :) You can try this code
this can write to readme.
the animated-tab-bar support Programmatic without storyboard or nib?