jdg / MBProgressHUD

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

Fix behavior inconsistencies #576

Open morozkin opened 5 years ago

morozkin commented 5 years ago

Hi!

With this PR I fixed several behavior bugs and added a test for these cases.

They are:

  1. If you try to hide a hud without animation, the alpha value for the backgroundView will be equal to 1.0 while it must be equal to 0.0
  2. If you have a hud with an animation type set to MBProgressHUDAnimationZoomIn and you hide this hud animatedly, trying to show it non-animated will end up in having a transform applied to the hub as a result of animated hide which is undesirable behavior.
morozkin commented 5 years ago

@matej Can you have a look at this PR?