         }
     }
     
-    open func showError(_ message: String?) {
-        toggleError(message ?? "")
+    open func showError(_ message: String?, customButtonText: String? = nil) {
         status = .error
+        messageLabel.text = message
+        self.customButtonText = customButtonText
+        toggleSpinner(toShowing: false)
         showBanner()
     }
 


import UIKit

@IBDesignable open class LoadingBanner: UIView {

    // MARK: - Public properties

    
    @IBInspectable open var defaultText: String = "Loading…" {
        didSet {
            messageLabel.text = defaultText
        }
    }
    
