Latest 0.0.6
Homepage https://github.com/daront/DTLoadingIndicator
License MIT
Platforms ios 8.0
Dependencies FLAnimatedImage
Authors

Badge w/ Version
License
Platform

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

DTLoadingIndicator

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.

“`: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.

```swift
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.

Latest podspec

{
    "name": "DTLoadingIndicator",
    "version": "0.0.6",
    "summary": "Easily show/hide a loading indicator in a fullscreen or a specific view.",
    "homepage": "https://github.com/daront/DTLoadingIndicator",
    "license": "MIT",
    "authors": {
        "Daron Tancharoen": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/daront/DTLoadingIndicator.git",
        "tag": "0.0.6"
    },
    "source_files": "DTLoadingIndicator/*.{swift}",
    "resource_bundles": {
        "DTLoadingIndicator": [
            "DTLoadingIndicator/*.{gif}"
        ]
    },
    "dependencies": {
        "FLAnimatedImage": [
            "~> 1.0"
        ]
    },
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This