     }
     
     open func zoomInAnimation(_ dialogView: UIView, sourceView: UIView, overlayView: UIView) {
-        let sourceSize: CGSize = sourceView.bounds.size
-        let dialogSize: CGSize = dialogView.bounds.size
+        let sourceSize = sourceView.bounds.size
+        let dialogSize = dialogView.bounds.size
         dialogView.frame = CGRect(x: (sourceSize.width - dialogSize.width) / 2,
                                   y: (sourceSize.height - dialogSize.height) / 2,
                                   width: dialogSize.width,

        }) { (finished) -> Void in
            UIView.animate(withDuration: self.animationDuration, delay: 0.0, options: .curveEaseIn, animations: { () -> Void in
                self.parentViewController?.ls_dialogViewController?.viewWillDisappear(false)
                
            }) { (finished) -> Void in
                dialogView.removeFromSuperview()
                overlayView.removeFromSuperview()

    }
    
    open func endAnimation(_ dialogView: UIView, sourceView: UIView, overlayView: UIView, animationPattern: LSAnimationPattern) {
        switch animationPattern {
        // Slide Pattern
        case .slideBottomBottom,
             .slideBottomTop,
             .slideLeftLeft,
             .slideLeftRight,
             .slideTopTop,
             .slideTopBottom,
             .slideRightRight,
             .slideRightLeft:
            self.slideOutAnimation(dialogView, sourceView: sourceView, overlayView: overlayView, animationPattern: animationPattern)
        // Zoom Pattern
        case .zoomInOut:
