         
     }
     
+    struct rightPanState {
+        static var frameAtStartOfPan: CGRect = CGRectZero
+        static var startPointOfPan: CGPoint = CGPointZero
+        static var wasOpenAtStartOfPan: Bool = false
+        static var wasHiddenAtStartOfPan: Bool = false
+    }
+    
     func handleRightPanGesture(panGesture: UIPanGestureRecognizer) {
         
         if !self.isTagetViewController() {

    
    private func panRightResultInfoForVelocity(velocity: CGPoint) -> PanInfo {
        
        var thresholdVelocity: CGFloat = -450.0
        var pointOfNoReturn: CGFloat = CGFloat(floor((self.rightMinOrigin() - self.rightContainerView.frame.size.width) + self.rightContainerView.frame.size.width / 2.0))
        var rightOrigin: CGFloat = self.rightContainerView.frame.origin.x
        
        var panInfo: PanInfo = PanInfo(action: SlideAction.Close, shouldBounce: false, velocity: 0.0)

import Foundation
import UIKit


class SlideMenuOption {
    
