Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: about 1 month 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 (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-01-13T16:06:47.000Z (almost 4 years ago)
- Last Synced: 2024-12-02T03:41:06.377Z (about 1 month 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
![Swift 4.0](https://img.shields.io/badge/Swift-4.0-orange.svg?maxAge=3600)
[![Platform](https://img.shields.io/cocoapods/p/ASProgressHud.svg?style=flat)](http://cocoapods.org/pods/ASProgressHud)
[![Version](https://img.shields.io/cocoapods/v/ASProgressHud.svg?style=flat)](http://cocoapods.org/pods/ASProgressHud)
[![License](https://img.shields.io/cocoapods/l/ASProgressHud.svg?style=flat)](http://cocoapods.org/pods/ASProgressHud)
[![Apps](https://img.shields.io/cocoapods/at/ASProgressHud.svg?style=flat)](http://cocoapods.org/pods/ASProgressHud)
[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
[![BuddyBuild](https://dashboard.buddybuild.com/api/statusImage?appID=58c125ce8fe03c010009b1a5&branch=master&build=latest)](https://dashboard.buddybuild.com/apps/56f4f461ae27cb01000b366d/build/latest?branch=master)
[![codebeat badge](https://codebeat.co/badges/ac582740-1971-481c-a11d-3c62f6f8e618)](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.![Screenshot](preview.gif)
## 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.