         self.arcEndAngle            =   arcEndAngle
         self.arcMargin              =   arcMargin
         
-        
         super.init(frame: CGRect(x: 0, y: 0, width: ringWidth, height: ringHeight))
         super.backgroundColor = backgroundColor
-        
-    }
-    
+    }
     
     required public init?(coder aDecoder: NSCoder) {
-        fatalError("init(coder:) has not been implemented")
-    }
-    
-    
-    
-    
+        super.init(coder: aDecoder)
+        //        fatalError("init(coder:) has not been implemented")
+    }
     
     public override func draw(_ rect: CGRect) {
         

    @IBInspectable public var valueMultiplier: Double = 100
    
    
    
    
    
    
    private let ringLayer = CAShapeLayer()
    private let thumbLayer = CALayer()
    private let imgView = UIImageView()
    private var thumbImageView = UIImageView()
    private var arcPath = UIBezierPath()
    
    
    
    // Arc animation notify Delegate
    public var delegate: KXArcNotifyDelegate?
    
    
    
    
 
    //designated init
    
    public init(ringWidth: CGFloat, ringHeight: CGFloat,backgroundColor: UIColor, ringBackgroundColour: UIColor,  ringForegroundColour: UIColor, foreGroundArcWidth: CGFloat, backGroundArcWidth: CGFloat, arcStartAngle: CGFloat,
                arcEndAngle: CGFloat, arcMargin: CGFloat) {
        
        
        self.ringBackgroundColour   =   ringBackgroundColour
        self.ringForegroundColour   =   ringForegroundColour

        self.addSubview(imgView)
    }
    
    //to draw the centre text
    
    func drawText(rectSize: CGSize) {
