Closed mman closed 4 years ago
Hey, sure! Sounds like you have a good design in mind for this, so feel free to go ahead with a PR.
I'm not planning to implement this feature. If you want to create a PR, feel free. Otherwise I will close this issue.
@JonasGessner Thanks for kicking me into doing it. It's in the https://github.com/JonasGessner/JGProgressHUD/pull/145. Hope I have not missed anything.
Closed via #145. Thanks!
Hi @JonasGessner, thanks for this great little library. I often use indeterminate progress indicators in a way to automatically pop up onscreen after certain delay, when a networking operation takes too long to complete. I often need to show them after one second, and then dismiss when operation completes. I use
DispatchWorkItem
to schedule[hud show]
after delay onDispatchQueue.main
.Would be cool if the hud itself can be
[hud showAfterDelay: 1]
tracking theDispatchWorkItem
internally and canceling it when[hud dismiss]
is invoked.Would you be interested for me to open a PR?