     
     
     fileprivate let spinner = UIActivityIndicatorView(activityIndicatorStyle: .white)
+    fileprivate let checkMarkLabel = UILabel()
     fileprivate var heightConstraint: NSLayoutConstraint!
     fileprivate let loadingStackView = UIStackView()
     fileprivate let loadingLabel = UILabel()

        loadingStackView.spacing = 4.0
        
        loadingStackView.addArrangedSubview(spinner)
        spinner.hidesWhenStopped = false
        
        loadingLabel.text = defaultText
        loadingLabel.font = UIFont.systemFont(ofSize: UIFont.smallSystemFontSize)
        loadingStackView.addArrangedSubview(loadingLabel)
        
        vibrancyView.contentView.addSubview(errorStackView)
        setupFullSize(errorStackView)
        
        errorStackView.addArrangedSubview(errorLabel)
        errorLabel.font = UIFont.systemFont(ofSize: UIFont.smallSystemFontSize)
        errorLabel.textAlignment = .center
        
        let closeLabel = UILabel()
        closeLabel.text = "✕"
        closeLabel.font = UIFont.systemFont(ofSize: UIFont.smallSystemFontSize)
        closeLabel.translatesAutoresizingMaskIntoConstraints = false
        closeLabel.widthAnchor.constraint(equalTo: closeLabel.heightAnchor).isActive = true
        errorStackView.addArrangedSubview(closeLabel)

        toggleBanner()
    }
    
    func delay(_ delay: Double, _ closure: @escaping () -> ()) {
        let time = DispatchTime.now() + Double(Int64(delay * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
        DispatchQueue.main.asyncAfter(deadline: time, execute: closure)
    }
    
    
    // MARK: - Initial setup
    
