Skip to content

JubinMathai/NNLoaderView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NNLoaderView

A simple loader view with easy customization.

Integration: CocoaPods (iOS 11+)

platform :ios, '11.0'
use_frameworks!
target 'MyApp' do
    pod 'NNLoaderView',  :git => 'https://github.com/NeevNaveen/NNLoaderView'
end

HOW TO USE

  • Set the Loader in the App Delegate's - didFinishLaunchingWithOptions

    NNLoaderView.shared.circleCount = 4;
    NNLoaderView.shared.circleRadius = 10;
    NNLoaderView.shared.circleColor = UIColor.purple;
    NNLoaderView.shared.changeColor = UIColor.cyan;

    Types of Animations to choose from

    NNLoaderView.shared.animationType = .scale;
    NNLoaderView.shared.animationType = .bounce;
    NNLoaderView.shared.animationType = .fadeInOutLenear;
    NNLoaderView.shared.animationType = .changeColor;
  • Now use it in your ViewController

        NNLoaderView.shared.show(inView: self.view); // To add the loaderview
        NNLoaderView.shared.remove(); // To remove the loaderview

About

A simple loader view with easy customization.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 93.8%
  • Ruby 6.2%