         }
         
         currentController = viewController
-        orientation = UIDevice.currentDevice().orientation
-        originalCurrentControllerFrame = viewController.view.frame
         
         if let navigationController = HMViewControllerManager.sharedInstance.navigationController {
             doneCellAnimations =  false

    
    private var doneAnimations = false
    private var doneCellAnimations = false
    private var orientation = UIDeviceOrientation.Unknown
    private var currentController:UIViewController?
    private var originalCurrentControllerFrame:CGRect?
    private var originalCloseButtonFrame:CGRect?
    private var originalTableViewFrame:CGRect?
    private var originalbuttonOriginY:CGFloat?
    private var offsetY:CGFloat?
    
    
    // MARK: - Initializers
    

        }
        
        updateButtonConstraint()
        
        tableView.setContentOffset(CGPointMake(0, 0), animated: false)
    }
    
