here is my code , but it showing the progress . is there any error in this code? please give some idea to fix this, or give some link related to this.
class
step 1 : Download "MBProgressHUD.h" and "MBProgressHUD.m" file and Add both file into your project. it will ask you to Bridging for Objective C files. if you already done bridging then it won't ask.
step 2 : In Bridging File import MBProgressHUD "import MBProgressHUD.h"
step 3 : use below code to show progress hud or hide hud.
for Show
DispatchQueue.main.async {
MBProgressHUD.showAdded(to: self.view, animated: true)
}
for hide
DispatchQueue.main.async {
MBProgressHUD.hide(for: self.view, animated: true)
}