         text.draw(in: unitRect)
     }
     
+    
+    
+    
+    //to fix the centre image
+    
     func resizeImage(image: UIImage, targetSize: CGSize) -> UIImage {
         let size = image.size
         

        ringLayer.add(animation, forKey: "animateArc")
    }
    
    func drawCenterImage() {
        
        let center = CGPoint(x: bounds.width / 2, y: bounds.height / 2)

        
        return newImage!
    }
    
    
    
    
}

extension KXThumbCircularProgressBar: CAAnimationDelegate {
