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

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

    }
    
    internal func singleTap(gesture: UITapGestureRecognizer) {
        guard !animating else { return }
        guard gesture.locationInView(self).y < CGRectGetMinY(containerView.frame) && tapToDismiss else { return }
        dismiss()
    }
