Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you please fix the completion handler for dismissWithDelay? #29

Closed
sbrighiu opened this issue Dec 2, 2020 · 1 comment
Closed

Comments

@sbrighiu
Copy link

sbrighiu commented Dec 2, 2020

When completion is used inside completionBlock, the completion parameter is nil, making so that dismissWithDelay trailing completion block is not called

@Ibrahimhass
Copy link
Member

It seems to work just fine.

self.view.backgroundColor = .blue
IHProgressHUD.show()
IHProgressHUD.dismissWithDelay(10.0, completion: {
    self.view.backgroundColor = .red
})

Please let me know if I do not get your issue correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants