icanzilb / SwiftSpinner

A beautiful activity indicator and modal alert written in Swift (originally developed for my app DoodleDoodle) Using blur effects, translucency, flat and bold design - all iOS 8 latest and greatest
MIT License
2.19k stars 268 forks source link

SwiftSpinner.hide() doesn't work on multiple push/pop view controllers. #137

Open tomengland opened 5 years ago

tomengland commented 5 years ago

Really weird issue where if I'm coming in and out of a view controller via a navigationController.popToRootController and a navigationController.pushViewController, the 2nd time the SwiftSpinner.hide() doesn't hide the view. I'd have to call it twice

SwiftSpinner.hide() SwiftSpinner.hide()

then if I do the push/pop thing again, it still has an issue and I would have to call it 3 times. It's as if each time the view controller pops/pushes it's adding another SwiftSpinner.show() for whatever reason.

andreamazz commented 5 years ago

Hi @tomengland can you post a simple demo project reproducing the issue? It'll help the bug hunting quite a bit. Thanks