Skip to content

Easily show/hide a loading indicator in fullscreen or a specific view.

License

Notifications You must be signed in to change notification settings

Zryte/DTLoadingIndicator

 
 

Repository files navigation

DTLoadingIndicator

Badge w/ Version License Platform

Easily show/hide a loading indicator in fullscreen or a specific view.

Features

  • Show full screen standard loading indicator (This will disable user interaction).
  • Show standard loading indicator in a center of specific view.
  • Show full screen loading indicator with animated gif (This will disable user interaction).
  • Show standard loading indicator with animated gif in a specific view.

System Requirements

iOS 8.0+, Swift 3.0

Installation

CocoaPods

Add into your Podfile.

pod "DTLoadingIndicator"

Then $ pod install

How to use

Just call DTLoadingIndicator.startFullScreenLoadingIndicator(), DTLoadingIndicator.startGiftFullScreenLoadingIndicator(), DTLoadingIndicator.startLoadingIndicatorInView(), DTLoadingIndicator.startLoadingIndicatorInView.startGiftLoadingIndicatorInView() to show loading indicator. Call DTLoadingIndicator.stopXxxxxx() to hide it.

DTLoadingIndicator.startGiftFullScreenLoadingIndicator()
DTLoadingIndicator.stopFullScreenLoadingIndicator()

or

DTLoadingIndicator.startGiftLoadingIndicatorInView(self.contentView, top: 30)
DTLoadingIndicator.stopLoadingIndicatorInView(self.contentView)

See more detail in the demo project.

Customizations

Currently, it's not possible to change animated gif image yet. Please feel free to contribute. You can also just download and replace the gif file with your own.

Author

Daron Tancharoen

License

DTLoadingIndicator is licensed under the MIT License, please see the LICENSE file.

About

Easily show/hide a loading indicator in fullscreen or a specific view.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Swift 92.7%
  • Ruby 7.3%