         self.setUpViewController(self.rightContainerView, targetViewController: self.rightViewController)
     }
     
-    // Notification func for view close
-    func handleWillEnterForegroundNotification(notif: NSNotification) {
-        self.closeLeft()
-        self.closeRight()
-    }
-    
     override func openLeft() {
         self.setOpenWindowLevel()
         

        
    }
    
    func handleRightPanGesture(panGesture: UIPanGestureRecognizer) {
        
        if !self.isTagetViewController() {


class SlideMenuController: UIViewController, UIGestureRecognizerDelegate {

    enum SlideAction {
        case Open
        case Close
    }
    
    enum TrackAction {
        case TapOpen
        case TapClose
        case FlickOpen
        case FlickClose
    }
    
    
    struct PanInfo {
        var action: SlideAction
        var shouldBounce: Bool
        var velocity: CGFloat
    }
    
    var opacityView = UIView()
    var mainContainerView = UIView()
    var leftContainerView = UIView()
