ASProgressHud
Requirements
- Swift 4.2
- XCode 10.0
- iOS >= 8
Installation
ASProgressHud is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ASProgressHud"
Changelog
See the changelog file.
Description
ASProgressHud displays a customized loading view. The loader is created with an UIImageView animated with png images.
Usage
To run the example project, clone the repo, and run pod install
from the Example directory first.
Default HUD
// Show
ASProgressHud.showHUDAddedTo(self.view, animated: true, type: .default)
// Hide
ASProgressHud.hideHUDForView(self.view, animated: true)
Custom HUD
// Import loader images in png format, with name like loader\_custom\_00.png, loader\_custom\_01.png, etc...
// Create HudProperty
HudProperty(prefixName: "loader_custom", frameNumber: 18)
// Show
ASProgressHud.showCustomHUDAddedTo(self.view, animated: true, hudProperty: hudProperty)
// Hide
ASProgressHud.hideHUDForView(self.view, animated: true)
Resources
Author
Andrea, Twitter @andrea_steva
License
ASProgressHud is available under the MIT license. See the LICENSE file for more info.