KRProgressHUD icon indicating copy to clipboard operation
KRProgressHUD copied to clipboard

KRProgressHUD.dismiss() sets rootViewController to KRProgressHUDViewController

Open SlavcoPetkovski opened this issue 4 years ago • 0 comments

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.

SlavcoPetkovski avatar Jul 09 '20 08:07 SlavcoPetkovski