             self.layoutIfNeeded()
         }) { (finished) in
             completion?(true)
+            self.animating = false
             self.removeFromSuperview()
         }
     }

        let targetViewController: UIViewController = viewController ?? parentViewController.rootViewController
        
        showing = true
        backgroundColor = theme.backgroundColor
        targetViewController.view.endEditing(true)
        

        }
        
        showing = false
        animating = true
        userInteractionEnabled = false
        cancelButtonBottom.constant = -CGRectGetHeight(parentViewController.rootViewController.view.frame)
        
        UIView.animateWithDuration(theme.dimissAnimationDuration, delay: 0, options: UIViewAnimationOptions(rawValue: 7 << 16), animations: {
