                 progressLayer.isHidden = true
                 progressLabel.isHidden = true
                 
-                if let loadingImages = loadingImages {
-                    
-                    imageView.animationImages = loadingImages
-                    
-                    animation = .gif
-                    
-                }else {
-                    
-                    imageView.image = loadingImage ?? UIImage.bundleImage(named: "loading")?.render(color: label.textColor)
-                    
-                    animation = .rotation
-                }
+                loadingAnimation = (loadingImages == nil) ? .rotation : .gif
                 
             case .progress:
                 
-                animation = .none
+                loadingAnimation = .none
                 imageView.isHidden = true
                 progressLayer.isHidden = false
                 progressLabel.isHidden = false

            
            setNeedsLayout()
            
        }
    }

    
    fileprivate var animation: HUDAnimation = .none {
        
        didSet{
            
            switch animation {
                
            case .none:
                

        
    }
    
     func show(progress: Double, status: String? = nil) {
        
        label.text = status
        
