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

  case overlayBlur(UIBlurEffectStyle)
  case type(PopoverType)
  case color(UIColor)
}

@objc public enum PopoverType: Int {

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