     {
         if isRotating
         {
-            startAnimating(true)
-        }
-    }
-}+            startAnimating()
+        }
+    }
+}

        progressLayer.position = CGPoint(x: bounds.size.width/2.0, y: bounds.size.height/2.0)
    }
    
    func startAnimating(animated: Bool)
    {
        guard isComplete == false else
        {

        progressLayer.addAnimation(rotationAnimation, forKey: "rotationAnimation")
    }
    
    func stopAnimating(animated: Bool = false)
    {
        isRotating = false
        if animated == false
