jdg / MBProgressHUD

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

isUserInteractionEnabled not Working in Swift 3.0 #492

Closed ImanX closed 7 years ago

ImanX commented 7 years ago

Hello guys! I use this lib in Swift 3.0 and i want disable any action from user when MBProgresHUD is Showing! I called isUserInteractionEnabled = false but not work. What's problem? Thank for help.

Bo98 commented 7 years ago

You actually want isUserInteractionEnabled = true. It's confusing at first, but it's because the setting refers to the HUD itself, so allowing interaction with the HUD means that it doesn't let interaction go through it (i.e. it handles interaction itself and blocks it from going further).