         self.animationLayer.addAnimation(animation, forKey: "rotate")
     }
     
-    func stopAnimating() {
+    public func stopAnimating() {
         self.animationLayer.removeAllAnimations()
         
         if self.hidesWhenStopped {

    /**
        Initializer --------------
    */
    required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
    }
    
    override init(frame :CGRect) {
        super.init(frame: frame)
    }
    
    convenience init() {
        self.init(frame: CGRectMake(0, 0, 20, 20))
    }
    
    convenience init(position :CGPoint, activityIndicatorStyle style :KRActivityIndicatorViewStyle) {
        if style.isLargeStyle {
            self.init(frame: CGRectMake(position.x, position.y, 50, 50))
        } else {

    // -------------------------
    
    
    public override func drawRect(rect: CGRect) {
        // recreate AnimationLayer
        self.animationLayer.removeFromSuperlayer()
        self.animationLayer = CALayer()
