             self.size = _size
         }
     }
-    
+
     /**
         Create a activity indicator view with specified type, color and default size
-    
+
         - Default size is 40
-        
+
         :param: frame view's frame
         :param: value animation type, value of NVActivityIndicatorType enum
         :param: color color of activity indicator view
-    
+
         :returns: The activity indicator view
     */
     convenience public init(frame: CGRect, type: NVActivityIndicatorType, color: UIColor?) {
         self.init(frame: frame, type: type, color: color, size: nil)
     }
-    
+
     /**
         Create a activity indicator view with specified type and default color, size
-    
+
         - Default color is white
         - Default size is 40
-    
+
         :param: view view's frame
         :param: value animation type, value of NVActivityIndicatorType enum
-    
+
         :returns: The activity indicator view
     */
     convenience public init(frame: CGRect, type: NVActivityIndicatorType) {
         self.init(frame: frame, type: type, color: nil)
     }
-    
+
     /**
         Start 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) {

        self.layer.speed = 1
        self.animating = true
    }

    /**
        Stop animation
    */
