relatedcode / ProgressHUD

ProgressHUD is a lightweight and easy-to-use HUD for iOS. Over 5000+ animations. ‼️

Home Page:https://relatedcode.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

if dismiss and then show again immediately , it will not show.

TushningJJ opened this issue · comments

commented
    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!