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()