Closed TushningJJ closed 1 year ago
ProgressHUD.show() DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 2) { ProgressHUD.dismiss() DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.04) { ProgressHUD.showError() } // DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + 0.05) { // ProgressHUD.showError() // } }
if i want show again ,i should set greater than 0.05 TimeInterval ,otherwise is will not show .
Please use the ProgressHUD.remove() instead of the ProgressHUD.dismiss() if you plan to re-display the ProgressHUD immediately. Thanks!
ProgressHUD.remove()
ProgressHUD.dismiss()
if i want show again ,i should set greater than 0.05 TimeInterval ,otherwise is will not show .