Commit 4f6aa0fe by ahusseini

Added nil check to BottomViewController transition

Checking for nil value of fromVC and toVC for tabBarController:animationControllerForTransitionFromViewController
parent 211e5fd9
......@@ -130,6 +130,11 @@ public class BottomNavigationController : UITabBarController, UITabBarController
/// Handles transitions when tabBarItems are pressed.
public func tabBarController(tabBarController: UITabBarController, animationControllerForTransitionFromViewController fromVC: UIViewController, toViewController toVC: UIViewController) -> UIViewControllerAnimatedTransitioning? {
let fromVC: UIViewController? = fromVC
let toVC: UIViewController? = toVC
if nill == fromVC || nil == toVC {
return nil
}
return .Fade == transitionAnimation ? BottomNavigationFadeAnimatedTransitioning() : nil
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment