Skip to content

andr3a88/ASProgressHud

Repository files navigation

ASProgressHud

Swift 4.0 Platform Version License Apps Carthage compatible BuddyBuild codebeat badge

Requirements

  • Swift 5
  • XCode 10.2
  • iOS >= 9

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.

Screenshot

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.