     }
     
     public func startAnimation() {
-        if layer.animationForKey(LotateAnimationKey) != nil {
+        if indicatorView.layer.animationForKey(LotateAnimationKey) != nil {
             return
         }
         

    private let ExpandAnimationKey = "expandAnimation"
    private let ContractAnimationKey = "contractAnimation"
    
    private var animationCount: CGFloat = 0
    private var pathLayer: CAShapeLayer? {
        willSet {

    public var intervalAnimationsHandler: ((SpringIndicator) -> Void)?
    
    public override init(frame: CGRect) {
        indicatorView = UIView(frame: CGRect(x: 0, y: 0, width: frame.width, height: frame.height))
        super.init(frame: frame)
        indicatorView.autoresizingMask = .FlexibleWidth | .FlexibleHeight
        addSubview(indicatorView)
        
        backgroundColor = UIColor.clearColor()
    }
    
    public required init(coder aDecoder: NSCoder) {
        indicatorView = UIView()
        super.init(coder: aDecoder)
        indicatorView.frame = bounds
        indicatorView.autoresizingMask = .FlexibleWidth | .FlexibleHeight
        addSubview(indicatorView)
    }
    
    private func incrementAnimationCount() -> CGFloat {
