MRProgress
MRProgress copied to clipboard
Overlay stops animating and view disappears when switching tabs
When swapping tabs, it stops the animation and looks broken. One workaround that helped me is by using the viewDidAppear/viewDidDisappear functions.
class ViewController: UIViewController {
var overlay = MRProgressOverlayView()
override func viewDidAppear(animated: Bool) {
overlay = MRProgressOverlayView.showOverlayAddedTo(self.view, animated: false)
}
override func viewDidDisappear(animated: Bool) {
overlay.dismiss(false)
}
}
I'm hitting this bug too...
I am also with this problem
+1
So one obvious issue in the probably reduced example code here is that an overlay is initialized, but not added to the view hierachy before the view is loaded.
class ViewController: UIViewController {
- var overlay = MRProgressOverlayView()
+ var overlay: MRProgressOverlayView?
Did you had the initialization before in an overriden viewDidLoad method?