CocoaPods trunk is moving to be read-only. Read more on the blog, there are 18 months to go.

DTLoadingIndicator 0.0.6

DTLoadingIndicator 0.0.6

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release Nov 2016
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by Daron Tancharoen.



  • By
  • Daron Tancharoen

DTLoadingIndicator

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

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.