         didSet {
             heightConstraint.constant = height
             layoutIfNeeded()
-        }
-    }
-    
-    @IBInspectable public var loadingText: String = "Loading…" {
-        didSet {
-            loadingLabel.text = loadingText
         }
     }
     

    // MARK: - Public functions
    
    public func showLoading() {
        errorMessage = nil
        loadingStackView.hidden = false
        errorStackView.hidden = true
        showing = true
        toggleBanner()
    }
    
    public func dismiss() {
        dismissBanner()
    }
    
    public func showError(message: String?) {
        errorMessage = message
        errorLabel.text = message
        errorStackView.hidden = false
        loadingStackView.hidden = true
        showing = true
        toggleBanner()
    }

}



        }
    }
    
    func toggleError(message: String?) {
        if let message = message {
            errorMessage = message
            errorLabel.text = message
            errorStackView.hidden = false
            loadingStackView.hidden = true
        } else {
            errorMessage = nil
            loadingStackView.hidden = false
            errorStackView.hidden = true
        }
    }
    
    func showBanner() {
        showing = true
        toggleBanner()
    }
    
    
    // MARK: - Initial setup
    
