- Swift 5
- XCode 10.2
- iOS >= 9
ASProgressHud is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ASProgressHud"
See the changelog file.
ASProgressHud displays a customized loading view. The loader is created with an UIImageView animated with png images.
To run the example project, clone the repo, and run pod install
from the Example directory first.
// Show
ASProgressHud.showHUDAddedTo(self.view, animated: true, type: .default)
// Hide
ASProgressHud.hideHUDForView(self.view, animated: true)
// 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)
Andrea, Twitter @andrea_steva
ASProgressHud is available under the MIT license. See the LICENSE file for more info.