Easily show/hide a loading indicator in fullscreen or a specific view.
- 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.
iOS 8.0+, Swift 3.0
Add into your Podfile.
pod "DTLoadingIndicator"
Then $ pod install
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.
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.
Daron Tancharoen
- CONTACTS:
DTLoadingIndicator is licensed under the MIT License, please see the LICENSE file.

