namshi/NMAnimatedTabBarItem

Name: NMAnimatedTabBarItem

Owner: Namshi

Description: A UI library to Animate UITabBar Items

Created: 2018-03-20 07:11:01.0

Updated: 2018-04-17 08:47:11.0

Pushed: 2018-03-21 10:34:57.0

Homepage: null

Size: 423

Language: Swift

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

NMAnimatedTabBarItem

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

Demo

Requirements
Installation

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

'NMAnimatedTabBarItem'
Usage
  1. Import NMAnimateTabBarItem framework.

    rt NMAnimatedTabBarItem
    
  2. Create an instance of type NMAnimateTabBarItem.

    animatedTabBar = NMAnimateTabBarItem()
    
  3. Adopt UITabBarControllerDelegate into your class.

    s ViewController: UITabBarController , UITabBarControllerDelegate {
     Your stuff
    
    
  4. Implement UITabBarControllerDelegate method.

     tabBarController(_ tabBarController: UITabBarController, shouldSelect viewController: UIViewController) -> Bool {
    rn true
    
    
  5. Find the index of selected tab and call animateTabBarItem.

    indexOfTab = tabBarController.viewControllers?.index(of:viewController)
    atedTabBar.animateTabBarItem(self.tabBar, indexOfTab!, NMAnimationtype.Bounce)
    
  6. Make sure UITabBar item images are added.

Included Animations
Customized Properties
Manual

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

Demo

Check out the Example project.

Copyrights

This library has created by inspiration of RAMAnimatedTabBarController.

All right reserved. Namshi Team 2018.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.