         self.layer.speed = 1
         self.animating = true
     }
-    
+
     /**
         Stop animation
     */

    private let DEFAULT_TYPE: NVActivityIndicatorType = .Pacman
    private let DEFAULT_COLOR = UIColor.whiteColor()
    private let DEFAULT_SIZE: CGSize = CGSize(width: 40, height: 40)
    
    private var type: NVActivityIndicatorType
    private var color: UIColor
    private var size: CGSize
    
    var animating: Bool = false
    var hidesWhenStopped: Bool = true
    
    /**
        Create a activity indicator view with default type, color and size
        This is used by storyboard to initiate the view
    
        - Default type is pacman\n
        - Default color is white\n
        - Default size is 40
    
        :param: decoder
    
        :returns: The activity indicator view
    */
    required public init(coder aDecoder: NSCoder) {

            hidden = true
        }
    }

    // MARK: Privates

    private func setUpAnimation() {
        let animation: protocol<NVActivityIndicatorAnimationDelegate> = animationOfType(self.type)

        self.layer.sublayers = nil
        animation.setUpAnimationInLayer(self.layer, size: self.size, color: self.color)
    }

    private func animationOfType(type: NVActivityIndicatorType) -> protocol<NVActivityIndicatorAnimationDelegate> {
        switch type {
        case .Blank:
