         nextAnimation()
     }
     
-    func stopAnimation() {
+    public func stopAnimation() {
         layer.removeAnimationForKey(LotateAnimationKey)
         pathLayer = nil
     }

        }
    }
    
    @IBInspectable var animating: Bool = false
    @IBInspectable var lineWidth: CGFloat = 3
    @IBInspectable var lineColor: UIColor = UIColor.grayColor()
    @IBInspectable var lotateDuration: Double = 1.5
    @IBInspectable var strokeDuration: Double = 0.7
    
    var intervalAnimationsHandler: ((SpringIndicator) -> Void)?
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        
        backgroundColor = UIColor.clearColor()
    }
    
    required init(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    

        return animationCount
    }
    
    public override func drawRect(rect: CGRect) {
        super.drawRect(rect)
        
        if animating {
