Can not show immediately another HUD after dismissing previous one
The below code is not showing the Second HUD.
ProgressHUD.show("First Hud...",interaction: false) DispatchQueue.main.asyncAfter(deadline: .now()+4.0) { ProgressHUD.dismiss() ProgressHUD.show("Second Hud...",interaction: false) DispatchQueue.main.asyncAfter(deadline: .now()+4.0) { ProgressHUD.dismiss() } }
The below code is not showing the Second HUD.
ProgressHUD.show("First Hud...",interaction: false) DispatchQueue.main.asyncAfter(deadline: .now()+4.0) { ProgressHUD.dismiss() ProgressHUD.show("Second Hud...",interaction: false) DispatchQueue.main.asyncAfter(deadline: .now()+4.0) { ProgressHUD.dismiss() } }
Hi, were you able to correct this behavior?
I keep getting the same error.