jdg/MBProgressHUD ? reverse-engineered prompt
Reverse engineered prompt
Build me a small iOS library and demo app that shows a clean loading overlay for long running tasks.
I want a translucent heads up display that can be dropped into any screen, with a spinner, a short message like Loading, and support for showing progress when the task can report it. It should be easy to show it on a view, update the text or progress, and hide it when the work is done. Please make it feel polished and reusable, like something I could add to an existing app without much setup.
Include a simple example screen that shows how to use it during background work, and another example for indeterminate and progress based loading. Keep it compatible with modern iOS, and if you need to check the latest Apple docs while building it, go ahead. Make sure the code is organized so it can be used as a standalone component or added into another Xcode project easily.
Are you gonna build this?
make sure you review the code using coderabbit