Skip to content

Commit

Permalink
fix(ios): embedder usage of window (#10167)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker committed Jan 14, 2023
1 parent 3c87a59 commit a69a9d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/application/index.ios.ts
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
}

Expand Down

0 comments on commit a69a9d6

Please sign in to comment.