     
     public func dismissModal
         (
-            data: AnyObject? = nil
+            sender: AnyObject,
+            data: AnyObject?
         ) {
         dismissModal(jConfig.animationDuration)
     }

    public var swipeDownDismiss: Bool
    public var backgroundTransformPercentage: Double
    public var backgroundTransform: Bool
    
    public init
    (

    private func addOverlay
        (
            overlayColorBackgroundColor : UIColor? = UIColor(white: 0, alpha: 0.3),
            dismissAnimationDuration : NSTimeInterval = 0.3,
            tapToDismiss: Bool = true
        ) {
        
        self.view.toggleSubviewsUserInteractionEnabled(false)
        jOverlay = UIView(frame: self.view.frame)
        jOverlay.backgroundColor = UIColor.clearColor()
        jOverlay.userInteractionEnabled = true
        if tapToDismiss {
            let tap = UITapGestureRecognizer(target: self, action: #selector(dismissModalByOverlay))
            jOverlay.addGestureRecognizer(tap)
        }
        let window = UIApplication.sharedApplication().keyWindow
        window?.addSubview(jOverlay)
    }
    
    @objc private func dismissModalByOverlay(recognizer : UIGestureRecognizer) {
        dismissModal(jConfig.animationDuration)
    }
    
