TProgressHUD
is a clean and easy-to-use HUD meant to display the progress of an ongoing task on iOS
- iOS 12.0+
- Swift 5
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
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"),
Using TProgressHUD
in your app will usually look as simple as this:
TProgressHUD.show()
TProgressHUD.dismiss()
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)
thinhnguyen12389, thinhnguyen12389@gmail.com
TProgressHUD is available under the MIT license. See the LICENSE file for more info.