diff --git a/packages/core/ui/core/view/index.ios.ts b/packages/core/ui/core/view/index.ios.ts index 21988fa13..83a3cb36c 100644 --- a/packages/core/ui/core/view/index.ios.ts +++ b/packages/core/ui/core/view/index.ios.ts @@ -913,7 +913,9 @@ export class View extends ViewCommon implements ViewDefinition { private _setupAdaptiveControllerDelegate(controller: UIViewController) { this._adaptivePresentationDelegate = IOSHelper.UIAdaptivePresentationControllerDelegateImp.initWithOwnerAndCallback(new WeakRef(this), this._closeModalCallback); - controller.presentationController.delegate = this._adaptivePresentationDelegate; + if (controller?.presentationController) { + controller.presentationController.delegate = this._adaptivePresentationDelegate; + } } } View.prototype._nativeBackgroundState = 'unset';