https://github.com/andr3a88/asprogresshud
ASProgressHud displays a customized loading view.
https://github.com/andr3a88/asprogresshud
ios ios-development swift swift-library swift4
Last synced: 7 months ago
JSON representation
ASProgressHud displays a customized loading view.
- Host: GitHub
- URL: https://github.com/andr3a88/asprogresshud
- Owner: andr3a88
- License: mit
- Created: 2016-02-17T14:27:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T16:06:47.000Z (over 4 years ago)
- Last Synced: 2024-12-02T03:41:06.377Z (7 months ago)
- Topics: ios, ios-development, swift, swift-library, swift4
- Language: Swift
- Homepage:
- Size: 2.26 MB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ASProgressHud

[](http://cocoapods.org/pods/ASProgressHud)
[](http://cocoapods.org/pods/ASProgressHud)
[](http://cocoapods.org/pods/ASProgressHud)
[](http://cocoapods.org/pods/ASProgressHud)
[](https://github.com/Carthage/Carthage)
[](https://dashboard.buddybuild.com/apps/56f4f461ae27cb01000b366d/build/latest?branch=master)
[](https://codebeat.co/projects/github-com-andr3a88-asprogresshud-master)## Requirements
* Swift 5
* XCode 10.2
* iOS >= 9## Installation
ASProgressHud is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod "ASProgressHud"
```## Changelog
See the [changelog](CHANGELOG.md) 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
```swift
// Show
ASProgressHud.showHUDAddedTo(self.view, animated: true, type: .default)// Hide
ASProgressHud.hideHUDForView(self.view, animated: true)
```#### Custom HUD
```swift
// 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
* [Preloaders.net](http://preloaders.net/)
* [Gif and aPng splitter](http://animizer.net/en/gif-apng-splitter)## Author
Andrea, Twitter @andrea_steva
## License
ASProgressHud is available under the MIT license. See the LICENSE file for more info.