         case Alert
     }
 
+    @IBInspectable public var outsideGestureShouldDismiss: Bool = true
+
     @IBInspectable public var controlHeight: Int        = 50 {
         didSet { self.updateUI() }
     }

        self.updateContraints()
    }

    func handleTaps(sender: UIControl) {
        let index = sender.tag
        let action = self.actions[index]

    func recognizeGestures(gestureRecognizer: UIGestureRecognizer) {
        let point = gestureRecognizer.locationInView(self.view)
        let view = self.view.hitTest(point, withEvent: nil)
        if (view == self.view && self.outsideGestureShouldDismiss) {
            self.dismissViewControllerAnimated(true, completion: nil)
        }
    }
