             contentViewContainer.alpha = 1 - (1 - CGFloat(contentViewFadeOutAlpha)) * delta
             
             if scaleBackgroundImageView {
-                backgroundImageView.transform = CGAffineTransformMakeScale(backgroundViewScale, backgroundViewScale)
+                backgroundImageView.transform = CGAffineTransform(scaleX: backgroundViewScale, y: backgroundViewScale)
             }
             
             if scaleMenuView {
-                menuViewContainer.transform = CGAffineTransformMakeScale(menuViewScale, menuViewScale)
+                menuViewContainer.transform = CGAffineTransform(scaleX: menuViewScale, y: menuViewScale)
             }
             
             if scaleBackgroundImageView && backgroundViewScale < 1 {
-                backgroundImageView.transform = CGAffineTransformIdentity
+                backgroundImageView.transform = CGAffineTransform.identity
             }
             
             if bouncesHorizontally && visible {

    
    func panGestureRecognized(recognizer: UIPanGestureRecognizer) {
        
        delegate?.sideMenuDidRecognizePanGesture?(self, recongnizer: recognizer)
        
        if !panGestureEnabled {
            return
        }
        
        var point: CGPoint = recognizer.translationInView(view)
        
        if recognizer.state == .Began {
            setupContentViewShadow()
            
            originalPoint = CGPointMake(contentViewContainer.center.x - CGRectGetWidth(contentViewContainer.bounds) / 2.0,
                contentViewContainer.center.y - CGRectGetHeight(contentViewContainer.bounds) / 2.0)
            menuViewContainer.transform = CGAffineTransformIdentity
            
            if (scaleBackgroundImageView) {
                backgroundImageView.transform = CGAffineTransformIdentity
                backgroundImageView.frame = view.bounds
            }
            

        if let viewController = contentViewController {
            for view in viewController.view.subviews {
                if view.tag == 101 {
                    view.isUserInteractionEnabled = contentButtonInteractive
                }else {
                    view.isUserInteractionEnabled = targetViewControllerViewInteractive
                }
            }
        }
    }
    
    // MARK : Motion Effects (Private)
