diff --git a/tns-core-modules/ui/core/view/view.ios.ts b/tns-core-modules/ui/core/view/view.ios.ts index ece66256d..fbdb45b43 100644 --- a/tns-core-modules/ui/core/view/view.ios.ts +++ b/tns-core-modules/ui/core/view/view.ios.ts @@ -317,7 +317,13 @@ export class View extends ViewCommon { super._showNativeModalView(parentWithController, context, closeCallback, fullscreen, stretched); let controller = this.viewController; if (!controller) { + const nativeView = this.ios || this.nativeViewProtected; controller = ios.UILayoutViewController.initWithOwner(new WeakRef(this)); + + if (nativeView instanceof UIView) { + controller.view.addSubview(nativeView); + } + this.viewController = controller; } @@ -733,7 +739,7 @@ export namespace ios { public viewWillAppear(animated: boolean): void { super.viewWillAppear(animated); const owner = this.owner.get(); - if(!owner){ + if (!owner) { return; }