KRProgressHUD
KRProgressHUD copied to clipboard
KRProgressHUD.dismiss() sets rootViewController to KRProgressHUDViewController
Hi.
When i dismiss KRProgressHUD the rootViewController is still set to KRProgressHUDViewController. Is there any work-around to inherit my old value before setting it? If I check the dismiss method this is done:
if self.presentingViewController != nil { self.hudViewController.willMove(toParent: nil) self.hudViewController.view.removeFromSuperview() self.hudViewController.removeFromParent() self.presentingViewController = nil self.window.rootViewController = self.hudViewController }
so at the end the rootViewController is set again to self.hudViewController.