fix(ios): embedder usage of window (#10167)

This commit is contained in:
Nathan Walker
2023-01-13 18:02:44 -08:00
committed by GitHub
parent 3c87a59c51
commit a69a9d6921

View File

@ -166,7 +166,7 @@ export class iOSApplication implements iOSApplicationDefinition {
get rootController(): UIViewController {
if (NativeScriptEmbedder.sharedInstance().delegate && !this._window) {
this._window = UIApplication.sharedApplication.delegate.window;
this._window = UIApplication.sharedApplication.keyWindow;
}
return this._window.rootViewController;
}
@ -254,7 +254,7 @@ export class iOSApplication implements iOSApplicationDefinition {
this.setWindowContent(args.root);
}
} else {
this._window = UIApplication.sharedApplication.delegate.window;
this._window = UIApplication.sharedApplication.keyWindow;
}
}