jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

How can I disable the navigation when mbprogress is showing #489

Closed santhoshs5 closed 7 years ago

santhoshs5 commented 7 years ago

var HUD: MBProgressHUD { unowned let unownedself = self let progressHUD = MBProgressHUD(view: unownedself.view) progressHUD.bezelView.color = UIColor.clear progressHUD.backgroundView.style = .blur //progressHUD.dimBackground = true view.addSubview(progressHUD) return progressHUD }

Above is my code.

shbhmnk commented 7 years ago

Try this HUD library for iOS in swift https://github.com/shubh10/JustHUD

matej commented 7 years ago

Depends on the navigation you have set up. Normally you do that with code unrelated to MBProgressHUD. But you can also add the HUD to your window to block all touches. view.window.addSubview(progressHUD).