 
   func navigationController(navigationController: UINavigationController, didShowViewController viewController: UIViewController, animated: Bool) {
     NSNotificationCenter.defaultCenter().postNotificationName(kPageHasStartedTransition, object: viewController, userInfo: nil)
+    self.duringPushAnimation = false
+  }
+  
+  override func pushViewController(viewController: UIViewController, animated: Bool) {
+    super.pushViewController(viewController, animated: animated)
+    self.duringPushAnimation = true
   }
 }


class CustomNavigationController: UINavigationController, UINavigationControllerDelegate, UIGestureRecognizerDelegate, SwipeBackPositionProtocol {
  var positionClosure: ((position: Int)->())?
  
  override func viewDidLoad() {
    super.viewDidLoad()

      return false
    }
    
    if self.duringPushAnimation {
      return false
    }
    
    return true
  }

