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.
For first-hand experience, just open the project and run it.
Install Cocoapods if need be
$ gem install cocoapods
Add NVActivityIndicatorView in your Podfile
pod 'NVActivityIndicatorView'
Then, run the following command
$ pod install
Copy NVActivityIndicatorView folder to your project. That's it.
There are 3 ways you can do:
- 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)
Thanks Connor Atherton for great loaders and Danil Gontovnik for kick-start.
The MIT License (MIT)
Copyright (c) 2015 Nguyen Vinh @ninjaprox