mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix showModal on iOS
This commit is contained in:
@@ -450,6 +450,10 @@ export class Page extends PageBase {
|
||||
|
||||
const viewController = child.ios instanceof UIViewController ? child.ios : child.viewController;
|
||||
if (viewController) {
|
||||
if (this.viewController.presentedViewController === viewController) {
|
||||
return true;
|
||||
}
|
||||
|
||||
this.viewController.addChildViewController(viewController);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user