      */
     case BallRotateChase
     
+    private static let allTypes = (Blank.rawValue ... BallRotateChase.rawValue).map{ NVActivityIndicatorType(rawValue: $0)! }
+
     private func animation() -> NVActivityIndicatorAnimationDelegate {
         switch self {
         case .Blank:

    @IBInspectable public var hidesWhenStopped: Bool = true
    
    /**
     Create a activity indicator view with default type, color and size.\n
     This is used by storyboard to initiate the view.
     
     - Default type is pacman.\n
     - Default color is white.\n
     - Default size is 40.
     
     - parameter decoder:
     

     */
    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        super.backgroundColor = UIColor.clearColor()
    }
    
    /**
     Create a activity indicator view with specified frame, type, color and padding.
     
     - parameter frame: view's frame setting the actual size of animation.
     - parameter type: animation type, value of NVActivityIndicatorType enum. Default type is pacman.
     - parameter color: color of activity indicator view. Default color is white.
     - parameter padding: padding of animation in frame. Default padding is 0.
     
     - returns: The activity indicator view.
     */
    public init(frame: CGRect, type: NVActivityIndicatorType = DEFAULT_TYPE, color: UIColor = DEFAULT_COLOR, padding: CGFloat = DEFAULT_PADDING) {
        self.type = type
        self.color = color
        self.padding = padding
        super.init(frame: frame)
    }
    
