SimpleTabBarAnimations 1.2.0

SimpleTabBarAnimations 1.2.0

Maintained by Aleksandar Geyman.



  • By
  • Aleksandar Geyman

SimpleTabBarAnimations

Swift Version License CocoaPods Compatible Platform

Add animations to your tab bar in a simple manner.

Requirements

  • iOS 12.0+
  • Swift 5

Instalation

SimpleTabBarAnimations is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SimpleTabBarAnimations'

Usage Example

  1. Make sure you have set a tint color to your tab bar.
tabBar.barTintColor = .white
  1. Import SimpleTabBarAnimation and conform your UITabBarController to it.
import SimpleTabBarAnimation
  1. Override func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) and use the provided functionality in it.
extension TabBarVC: SimpleTabBarAnimation {
    override func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) {
        playAnimation(type: .bounce, for: item)
    }
}

License

SimpleTabBarAnimations is available under the MIT license. See the LICENSE file for more info.