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

import UIKit

@IBDesignable
class SpringIndicator: UIView {
    private let LotateAnimationKey = "rotateAnimation"
    private let ExpandAnimationKey = "expandAnimation"
    private let ContractAnimationKey = "contractAnimation"

        return shapeLayer
    }
    
    public func startAnimation() {
        if layer.animationForKey(LotateAnimationKey) != nil {
            return
        }
        
        let anim = CABasicAnimation(keyPath: "transform.rotation.z")
        anim.duration = lotateDuration
        anim.repeatCount = HUGE
