       spinnerView.spinner.messageLabel.attributedText = attributedText
         
       spinnerView.spinner.messageLabel.isHidden = false
-      spinnerView.spinner.bringSubview(toFront: spinnerView.spinner.messageLabel)
+      spinnerView.spinner.bringSubviewToFront(spinnerView.spinner.messageLabel)
       spinnerView.spinner.layoutIfNeeded()
       
       spinnerView.animate()

    line3.layer.cornerRadius = lineWidth/2.0
    containerView.addSubview(line3)
    
    bringSubview(toFront: containerView)
   
    overlayView.addSubview(messageLabel)
    

    
    open func dismiss() {
        spinner.shouldStopAnimation = true
        UIView.animate(withDuration: self.animationSpeed, delay: 0.0, options: UIView.AnimationOptions(), animations: { () -> Void in
            self.alpha = 0.0
        }) { (success) -> Void in
            self.removeFromSuperview()
        }
    }
    
