Skip to content

TProgressHUD is a clean and easy-to-use HUD meant to display the progress of an ongoing task on iOS

License

Notifications You must be signed in to change notification settings

fanta1ty/TProgressHUD

Repository files navigation

Logo

TProgressHUD

Swift 5.0 Version License Platform Email

TProgressHUD is a clean and easy-to-use HUD meant to display the progress of an ongoing task on iOS

Requirements

  • iOS 12.0+
  • Swift 5

Installation

From CocoaPods

TProgressHUD is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'TProgressHUD'

Second, install TProgressHUD into your project:

pod install

Swift Package

TProgressHUD is designed for Swift 5. To depend on the logging API package, you need to declare your dependency in your Package.swift

.package(url: "https://github.com/fanta1ty/TProgressHUD.git", brand: "master"),

Usage

Using TProgressHUD in your app will usually look as simple as this:

TProgressHUD.show()
TProgressHUD.dismiss()

Showing the HUD

You can show the status of indeterminate tasks using one of the following:

TProgressHUD.show()
TProgressHUD.showWithStatus(status: "Status")

If you'd like the HUD to reflect the progress of a task, use one of these:

TProgressHUD.showProgress(progress: 0.1)
TProgressHUD.showProgress(progress: 0.1, status: "Status")

The HUD can be dismissed using:

TProgressHUD.dismiss()
TProgressHUD.dismissWithDelay(delay: 1.0)

Author

thinhnguyen12389, thinhnguyen12389@gmail.com

License

TProgressHUD is available under the MIT license. See the LICENSE file for more info.

About

TProgressHUD is a clean and easy-to-use HUD meant to display the progress of an ongoing task on iOS

Resources

License

Stars

Watchers

Forks