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

    private var shapePoint: CGPoint = CGPointMake(0, 0)
    private var progressView: UIView!
    private var parentView: UIView?
    
    override init(frame: CGRect) {
        super.init(frame: frame)

    }
    
    public func stopWithError(error: String) {
        imageView.image = UIImage(named: "error")
        titleLabel.text = error
        state = .Error
        self.shapeLayer.removeAnimationForKey("rotationAnimation")
        self.progressView.removeFromSuperview()
        self.addSubview(self.imageView)
