Skip to content

Commit 1778ba1

Browse files
Hristo HristovHristo Hristov
authored andcommitted
Fix showModal on iOS
1 parent b489e52 commit 1778ba1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tns-core-modules/ui/page/page.ios.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,10 @@ export class Page extends PageBase {
450450

451451
const viewController = child.ios instanceof UIViewController ? child.ios : child.viewController;
452452
if (viewController) {
453+
if (this.viewController.presentedViewController === viewController) {
454+
return true;
455+
}
456+
453457
this.viewController.addChildViewController(viewController);
454458
}
455459

0 commit comments

Comments
 (0)