                 return
             }
         }
-        self.delegate?.didFinish()
-        self.shapeLayer.isHidden = true
-        self.label.isHidden = true
+        delegate?.didFinish()
+        shapeLayer.isHidden = true
+        label.isHidden = true
     }
 }
 

        let startAngle = CGFloat(-M_PI_2)
        let endAngle = startAngle + 2.0 * CGFloat(M_PI)
        let path = UIBezierPath(arcCenter: center, radius: radius, startAngle: startAngle, endAngle: endAngle, clockwise: true)
        self.shapeLayer.path = path.cgPath
        self.layer.addSublayer(self.shapeLayer)
        
        label.frame = CGRect(x: 0, y: 0, width: self.frame.width, height: self.frame.height)
        label.center = CGPoint(x: self.bounds.size.width / 2.0, y: self.bounds.size.height / 2.0)
        label.textAlignment = NSTextAlignment.center
        label.font = UIFont.boldSystemFont(ofSize: 100)
        self.addSubview(label)
    }
    
    required init?(coder aDecoder: NSCoder) {

    }
    
    func stop(){
        shapeLayer.isHidden = true
        shapeLayer.removeAnimation(forKey: "circleAnim")
    }
    
