mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(ios): fixed embedder
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user