/NVActivityIndicatorView

Collection of nice loading animations

Primary LanguageSwiftMIT LicenseMIT

NVActivityIndicatorView

Introduction

NVActivityIndicatorView is a collection of nice loading animations.

This is original a fork from DGActivityIndicatorView, inspired by Loaders.css, written in Swift with full implementation of animations.

You can also find Objective-C version of this here.

Demo

alt tag

For first-hand experience, just open the project and run it.

Installation

Cocoapods

Install Cocoapods if need be

$ gem install cocoapods

Add NVActivityIndicatorView in your Podfile

use_frameworks!

pod 'NVActivityIndicatorView'

Then, run the following command

$ pod install

Manual

Copy NVActivityIndicatorView folder to your project. That's it.

Usage

Firstly, import NVActivityIndicatorView

import NVActivityIndicatorView

Then, there are 4 ways you can do:

  • Use it in storyboard by changing class of any UIView to NVActivityIndicatorView This will use default values 40, white, .Pacman for size, color and type respectively.

  • Create with specified type and size 40, color white as default

NVActivityIndicatorView(frame: frame, type: type)
  • Create with specified type, color and size 40 as default
NVActivityIndicatorView(frame: frame, type: type, color: color)
  • Create with specified type, color, size
NVActivityIndicatorView(frame: frame, type: type, color: color, size: size)

Acknowledgment

Thanks Connor Atherton for great loaders and Danil Gontovnik for kick-start.

License

The MIT License (MIT)

Copyright (c) 2015 Nguyen Vinh @ninjaprox