SwiftyTabBarTransition
This framework help you to give a better user experience to your user with smooth transition between TabBarItem
Install / Use
/learn @shndrs/SwiftyTabBarTransitionREADME
SwiftyTabBarTransition
Example
To run the example project, clone the repo, and run pod install from the Example directory first.

How to use
For enjoy this framework you have three simple steps:
Step 1
Let's import SwiftyTabBarTransition in top of your UITabBarController class first
import SwiftyTabBarTransition
Step 2
then in viewDidLoad() method of your UITabBarController, make delegate equal to self, pretty simple so far, right?! 😉
class TabBarController: UITabBarController {
override func viewDidLoad() {
super.viewDidLoad()
delegate = self
}
}
Step 3
your UITabBarController class, must inherite from UITabBarControllerDelegate protocol, so write an extension of your UITabBarController, then confirm from animationControllerForTransitionFrom method
extension TabBarController: UITabBarControllerDelegate {
func tabBarController(_ tabBarController: UITabBarController, animationControllerForTransitionFrom fromVC: UIViewController, to toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
let transitionOptions = SwiftyTabBarTransitionOptions(duration: 0.3, animationOption: .bottomToTop)
let transition = SwiftyTabBarTransition.set(transition: transitionOptions)
return transition
}
}
Create an object of SwiftyTabBarTransitionOptions. This class has 2 peroperties:
- duration
- animationOption
Animation Option
It's an enum for changing transition animation
| animationOption |
| ------------- |
| .scaleX |
| .scaleY |
| .scaleInXY |
| .scaleOutXY |
| .rightToLeft |
| .leftToRight |
| .topToBottom |
| .bottomToTop |
| .fade |
| .topLeftToBottomRight |
| .bottomLeftToTopRight |
More Animations

Requirements
<p>iOS 9.3+</p> <p>Xcode 10.2.1</p> <p>Swift 5</p>Installation
<img src="https://raw.githubusercontent.com/CocoaPods/shared_resources/master/img/CocoaPods-Logo-Highlight.png" width="128px" height="32px" />SwiftyTabBarTransition is available through CocoaPods. To install it in latest version, simply add the following line to your Podfile:
Swift 4.2
pod 'SwiftyTabBarTransition', '~> 1.0.2'
Swift 5.0
pod 'SwiftyTabBarTransition', '~> 1.5.3'
<img src="https://raw.githubusercontent.com/Carthage/Carthage/master/Logo/PNG/colored.png" width="32px" height="32px" />
To get the latest version of library using Carthage, you can add following line to your Cartfile.
Swift 4.2
github "shndrs/SwiftyTabBarTransition" "1.0.2"
Swift 5.0
github "shndrs/SwiftyTabBarTransition" "1.5.3"
Author
sahandraeisi1994@gmail.com, sahandraeisi@yahoo.com, shndrs
License
SwiftyTabBarTransition is available under the MIT license. See the LICENSE file for more info.
