From f935d170c5df92c674babe8d6f74256bf1fa0c65 Mon Sep 17 00:00:00 2001 From: Nathan Walker Date: Tue, 14 Jul 2020 14:33:09 -0700 Subject: [PATCH] feat(ios): fixed embedder --- packages/core/application/index.ios.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/core/application/index.ios.ts b/packages/core/application/index.ios.ts index e7e9f205a..dff386ac8 100644 --- a/packages/core/application/index.ios.ts +++ b/packages/core/application/index.ios.ts @@ -111,6 +111,9 @@ export class iOSApplication implements iOSApplicationDefinition { } get rootController(): UIViewController { + if (NativeScriptEmbedder.sharedInstance().delegate && !this._window) { + this._window = UIApplication.sharedApplication.delegate.window; + } return this._window.rootViewController; }