mrackwitz / MRProgress

Collection of iOS drop-in components to visualize progress
MIT License
2.55k stars 305 forks source link

Feature request: minimum presentation time #100

Open cbowns opened 9 years ago

cbowns commented 9 years ago

MBProgressHUD supported the concept of a "minimum show time" and a "grace timer", which made for a great user experience. (A snippet from its header and implementation)

You could show a HUD and set it to show for at least 2.0 seconds, with a 1.0s grace time. If the operation finished in under 1s, the HUD wouldn't display. If it did display, it'll stay visible for 2.0s, even if you call dismiss on it a moment later. This prevents HUDs from flashing for quick operations, and gives the user time to read any text you may have displayed.