     }
     
     
-    func startAnimating() {
+    public func startAnimating() {
         if let _ = self.animationLayer.animationForKey("rotate") { return }
         
         let animation = CABasicAnimation(keyPath: "transform.rotation")

    /**
        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 {

        }
    }
    
    @IBInspectable var animating :Bool = true
    @IBInspectable var hidesWhenStopped :Bool = false
   
    
    private var animationLayer = CALayer()
    
    public var activityIndicatorViewStyle :KRActivityIndicatorViewStyle = .Black {
        didSet { self.setNeedsDisplay() }
    }
    
    public var isAnimating :Bool {
        get {
            if self.animationLayer.animationForKey("rotate") != nil { return true }
            else { return false }
