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

    }

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

    self.containerView = inView
    self.contentView = contentView

  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: (() -> ())?
