GithubHelp home page GithubHelp logo

loading-indicator's Introduction

LoadingIndicator

A lightweight simple reusable loading indicator view

LoadingIndicator.swift

Helps in presenting loading indicator across the application in a easy way.

Methods:

- func showOnWindow(loadingIndicatorText: String? = nil)
  Usage : LoadingIndicator.sharedInstance.showOnWindow(loadingIndicatorText: "Please wait...")
    
- func showOnController(presenter: UIViewController, loadingIndicatorText: String? = nil)
  Usage : LoadingIndicator.sharedInstance.showOnController(presenter: self, loadingIndicatorText: "Loading")

- func showOnView(presenter: UIView, loadingIndicatorText: String? = nil)
  Usage : LoadingIndicator.sharedInstance.showOnView(presenter: self.customView)

- func hide()
  Usage : LoadingIndicator.sharedInstance.hide()

Installation - Manually

- Download the repo
- Copy the LoadingIndicator.swift into your workspace directory.

Example project to demonstrate the use of loading Indicator on

- Window(Full Screen)
- View Controller
- Inside any Custom View

Having trouble ?

If you are having trouble with this project or if you find any bugs, do open a new issue and describe the problem.

Spread the word!

Liked the project? Just give it a star ⭐️ and spread the word!

Author/ Credits

© Sumit Kumar | @SumitKr88

License

MIT License

loading-indicator's People

Contributors

sumitkr88 avatar sumit1611 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.