mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(ios): custom modal transitions part 2
This commit is contained in:
@@ -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 = <UIAdaptivePresentationControllerDelegate>this._adaptivePresentationDelegate;
|
||||
if (controller?.presentationController) {
|
||||
controller.presentationController.delegate = <UIAdaptivePresentationControllerDelegate>this._adaptivePresentationDelegate;
|
||||
}
|
||||
}
|
||||
}
|
||||
View.prototype._nativeBackgroundState = 'unset';
|
||||
|
||||
Reference in New Issue
Block a user