 import UIKit
 
 enum RFProgressHUDType {
-    case RFProgressHUDTypeDefault, RFProgressHUDTypeError, RFProgressHUDTypeSuccess
+    case Default, Error, Success
 
 }
 

    }
    
    public func stopWithError(error: String) {
        let imageFrame = CGRectMake(0, 0, self.frame.size.height * 0.4, self.frame.size.height * 0.4)
        self.imageView = UIImageView(frame: imageFrame)
        self.imageView.center = self.shapePoint
        imageView.image = UIImage(named: "error")
        titleLabel.text = error
        self.shapeLayer.removeAnimationForKey("rotationAnimation")
        self.progressView.removeFromSuperview()
        self.addSubview(self.imageView)

    }
    
    public func startAnimating() {

        self.imageView.removeFromSuperview()
        
        self.addSubview(progressView)
        let rotationAnimation = CABasicAnimation(keyPath: "transform.rotation.z")
        rotationAnimation.duration = Double(self.duration)
