mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 10:01:08 +08:00
feat(core): ability to embed into platform host projects (#10465)
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { profile } from '../profiling';
|
||||
import { View } from '../ui';
|
||||
import { View } from '../ui/core/view';
|
||||
import { isEmbedded } from '../ui/embedding';
|
||||
import { IOSHelper } from '../ui/core/view/view-helper';
|
||||
import { NavigationEntry } from '../ui/frame/frame-interfaces';
|
||||
import * as Utils from '../utils';
|
||||
@ -367,7 +368,7 @@ export class iOSApplication extends ApplicationCommon implements IiOSApplication
|
||||
});
|
||||
|
||||
if (this._window) {
|
||||
if (root !== null && !NativeScriptEmbedder.sharedInstance().delegate) {
|
||||
if (root !== null && !isEmbedded()) {
|
||||
this.setWindowContent(root);
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user