https://github.com/fanta1ty/tprogresshud
TProgressHUD is a clean and easy-to-use HUD meant to display the progress of an ongoing task on iOS
https://github.com/fanta1ty/tprogresshud
Last synced: 3 months ago
JSON representation
TProgressHUD is a clean and easy-to-use HUD meant to display the progress of an ongoing task on iOS
- Host: GitHub
- URL: https://github.com/fanta1ty/tprogresshud
- Owner: fanta1ty
- License: mit
- Created: 2023-06-05T05:57:29.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-10-16T03:31:01.000Z (over 1 year ago)
- Last Synced: 2025-02-28T00:41:21.095Z (4 months ago)
- Language: Swift
- Homepage:
- Size: 85 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# TProgressHUD
[](https://developer.apple.com/swift/)
[](https://cocoapods.org/pods/TProgressHUD)
[](https://cocoapods.org/pods/TProgressHUD)
[](https://cocoapods.org/pods/TProgressHUD)
[]([email protected])`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](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'TProgressHUD'
```Second, install `TProgressHUD` into your project:
```ruby
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````swift
.package(url: "https://github.com/fanta1ty/TProgressHUD.git", brand: "master"),
```## Usage
Using `TProgressHUD` in your app will usually look as simple as this:
```swift
TProgressHUD.show()
TProgressHUD.dismiss()
```### Showing the HUD
You can show the status of indeterminate tasks using one of the following:
```swift
TProgressHUD.show()
TProgressHUD.showWithStatus(status: "Status")
```If you'd like the HUD to reflect the progress of a task, use one of these:
```swift
TProgressHUD.showProgress(progress: 0.1)
TProgressHUD.showProgress(progress: 0.1, status: "Status")
```The HUD can be dismissed using:
```swift
TProgressHUD.dismiss()
TProgressHUD.dismissWithDelay(delay: 1.0)
```## Author
thinhnguyen12389, [email protected]
## License
TProgressHUD is available under the MIT license. See the LICENSE file for more info.