diff --git a/ios/Temp/UIPresentationController+Helpers.swift b/ios/Temp/UIPresentationController+Helpers.swift new file mode 100644 index 00000000..e3886a67 --- /dev/null +++ b/ios/Temp/UIPresentationController+Helpers.swift @@ -0,0 +1,16 @@ +// +// UIPresentationController+Helpers.swift +// react-native-ios-modal +// +// Created by Dominic Go on 9/27/24. +// + +import UIKit + + +extension UIPresentationController { + + public var presentationControllerMetrics: PresentationControllerMetrics { + .init(from: self); + }; +}; diff --git a/ios/Temp/UIViewController+ModalHelpers.swift b/ios/Temp/UIViewController+ModalHelpers.swift index 328ddfee..c02001bc 100644 --- a/ios/Temp/UIViewController+ModalHelpers.swift +++ b/ios/Temp/UIViewController+ModalHelpers.swift @@ -119,4 +119,7 @@ extension UIViewController { return window.currentModalLevel; }; + public var presentationControllerMetrics: PresentationControllerMetrics? { + self.presentationController?.presentationControllerMetrics; + }; };