         }
     }
     
+    @IBInspectable open var successTint: UIColor = UIColor.green.withAlphaComponent(0.2) {
+        didSet {
+            updateColors()
+        }
+    }
+    
     @IBInspectable open var errorTint: UIColor = UIColor.red.withAlphaComponent(0.2) {
         didSet {
             updateColors()

    
    open func showLoading() {
        toggleError(nil)
        loadingLabel.text = defaultText
        spinner.startAnimating()
        showBanner()
    }
    
    open func showMessage(_ text: String?) {
        toggleError(nil)
        loadingLabel.text = text
        spinner.startAnimating()
        showBanner()
    }
    
    open func showSuccess(message: String?, for duration: Double = 2.0) {
        toggleError(nil)
        loadingLabel.text = message
        spinner.stopAnimating()
        showBanner()
        delay(duration) { 
            self.dismissBanner()

        }
    }
    
    func toggleSpinner(toShowing: Bool) {
        if toShowing {
            spinner.startAnimating()
        } else {
            spinner.stopAnimating()
        }
    }
    
    func showBanner() {
        showing = true
        toggleBanner()
