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

      return false
    }
    
    return true
  }



  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
  }
}
