NMAnimatedTabBarItem 2.0.0

NMAnimatedTabBarItem 2.0.0

Maintained by Namshi LLC.

  • By
  • Namshi General Trading L.L.C


NMAnimatedTabBarItem is a Swift based UI module library for adding animation to iOS tabbar items and icons. iOS library made by @Namshi Mobile Team.



  • iOS 9.0+
  • xCode 9
  • Swift 3.2


Just add the NMAnimatedTabBarItem folder to your project. or use CocoaPods with Podfile:

pod 'NMAnimatedTabBarItem'


  1. Import NMAnimateTabBarItem framework.
import NMAnimatedTabBarItem
  1. Create an instance of type NMAnimateTabBarItem.
var animatedTabBar = NMAnimateTabBarItem()
  1. Adopt UITabBarControllerDelegate into your class.
class ViewController: UITabBarController , UITabBarControllerDelegate {
  //do Your stuff
  1. Implement UITabBarControllerDelegate method.
func tabBarController(_ tabBarController: UITabBarController, shouldSelect viewController: UIViewController) -> Bool {
  return true
  1. Find the index of selected tab and call animateTabBarItem.
let indexOfTab = tabBarController.viewControllers?.index(of:viewController)
animatedTabBar.animateTabBarItem(self.tabBar, indexOfTab!, 2 , NMAnimationtype.Bounce)
  1. Make sure UITabBar item images are added.

Included Animations

  • Bounce
  • Rotation
  • Transition
  • Frame

Customized Properties

  • Chenging animation duration.
animatedTabBar.duration = 0.2
  • Providing transition Options.
animatedTabBar.transitionOptions = UIViewAnimationOptions.transitionFlipFromBottom
  • Chenging rotation direction
animatedTabBar.direction = NMRotationDirection.right
  • Passing image names for frame animation
animationType = NMAnimationtype.Frame
var imagesArray :[String] = []
for index in 0...35 {
  • Passing images for frame animation
animationType = NMAnimationtype.Frame
imagesList.append((UIImage(named: "image.png")?.cgImage)!)
imagesList.append((UIImage(named: "image2.png")?.cgImage)!)
imagesList.append((UIImage(named: "image3.png")?.cgImage)!)
animatedTabBar.animationImages = imagesList


You can download the latest files from our Releases page. After doing so, copy the Swift file in the Sources folder to your project.


Check out the Example project.


This library has created by inspiration of RAMAnimatedTabBarController.

All right reserved. Namshi Team 2018.