         let height = screenHeight * (1 - animationSizeDiff)
         let x = (screenWidth - width)/2
         let y = (screenHeight - height)/2
-        afterViewController?.view.frame = CGRectMake(x.toHalfCGFloat(), y.toHalfCGFloat(), width.toHalfCGFloat(), height.toHalfCGFloat())
+        afterViewController?.view.frame = CGRectMake(x, y, width, height)
         afterViewController?.view.alpha = 1 - animationAlphaDiff
     }
     

                    let height = screenHeight * ((1 - animationSizeDiff) + progress * animationSizeDiff)
                    let x = (screenWidth - width)/2
                    let y = (screenHeight - height)/2
                    afterViewController.view.frame = CGRectMake(x.toHalfCGFloat(), y.toHalfCGFloat(), width.toHalfCGFloat(), height.toHalfCGFloat())
                    afterViewController.view.alpha = (1 - animationAlphaDiff) + progress * animationAlphaDiff
                }
                else {
                    visibleViewController?.view.frame = CGRectMake(-(horizontalDiff * animationBounceSize).toHalfCGFloat(), 0, screenWidth.toHalfCGFloat(), screenHeight.toHalfCGFloat())
                }
                
                if let visibleViewController = visibleViewController {

    }
    
}
