                 self.backgroundView.removeFromSuperview()
                 self.customView.removeAllSubviews()
                 self.removeFromSuperview()
+                if self.didDismissBlock != nil
+                {
+                    self.didDismissBlock!(self)
+                }
             }
         }
         layer.pop_add(offscreenAnimation, forKey: "offscreenAnimation")

            let tapBackgroundView = UITapGestureRecognizer.init(target: self, action: #selector(self.dismiss))
            tapBackgroundView.numberOfTouchesRequired = 1
            tapBackgroundView.numberOfTapsRequired = 1
            mainView.addGestureRecognizer(tapBackgroundView)
        }
        
        blur = SSBlurView.init(to: self)

    
    @objc public func dismiss()
    {
        var propertyNamed = ""
        var offsetValue : CGFloat = 0

