   open var blackOverlayColor: UIColor = UIColor(white: 0.0, alpha: 0.2)
   open var overlayBlur: UIBlurEffect?
   open var popoverColor: UIColor = UIColor.white
+  open var dismissOnBlackOverlayTap: Bool = true
 
   // custom closure
   open var willShowHandler: (() -> ())?

          self.popoverType = value
        case let .color(value):
          self.popoverColor = value
        }
      }
    }

    }

    inView.addSubview(self.blackOverlay)
    
    if self.dismissOnBlackOverlayTap {
        self.blackOverlay.addTarget(self, action: #selector(Popover.dismiss), for: .touchUpInside)
    }

    self.containerView = inView
    self.contentView = contentView
