maysamsh / MBProgressHUD-UIView-Extension

This UIView extension eases using MBProgressHUD on UIView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MBProgressHUD-UIView-Extension

Usage

After include MBProgressHUD in your project, to show the hud simple use: Simple hud:

self.view.showHud()

Hud with progress and text:

self.view.showHud(withProgess: 0, hudText: "Uploading...")
...
//Setting progress
self.view.hudProgress = Float(0.2)
...
self.view.hudProgress = Float(1.0)

hudText is optional, you can omit it.

To hide the hud:

self.view.hideHud()

About

This UIView extension eases using MBProgressHUD on UIView

License:MIT License


Languages

Language:Swift 100.0%