     }
     var darkTextColor = UIColorFromHex(0x000000, alpha: 0.75)
     var lightTextColor = UIColorFromHex(0xffffff, alpha: 0.9)
+    
+    enum ActionType {
+        case Close, Cancel
+    }
     
     let baseHeight:CGFloat = 160.0
     var alertWidth:CGFloat = 290.0

    }

    func cancelButtonTap() {
        closeView(false);
    }
    
    func closeView(withCallback:Bool) {
        UIView.animateWithDuration(0.3, delay: 0, usingSpringWithDamping: 0.7, initialSpringVelocity: 0.5, options: nil, animations: {
            self.containerView.center.y = self.rootViewController.view.center.y + self.viewHeight!
            }, completion: { finished in

    }
    
    func buttonTap() {
        closeView(true, source: .Close);
    }
    
    func addCancelAction(action: ()->Void) {
