Commit 83c4c4a6 by Daniel Dahan

Merge pull request #263 from ahusseini/master

Added nil check to BottomViewController transition
parents c52f057b cb5b9b2d
......@@ -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 nil == 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