From d60ad2b2c17f5e00072eac05360e907f631b9199 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Fri, 27 Sep 2024 16:56:32 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AD=90=EF=B8=8F=20Impl:=20`UIViewController.?= =?UTF-8?q?modalMetrics`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Temp/UIViewController+ModalHelpers.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ios/Temp/UIViewController+ModalHelpers.swift b/ios/Temp/UIViewController+ModalHelpers.swift index c02001bc..4d1e740d 100644 --- a/ios/Temp/UIViewController+ModalHelpers.swift +++ b/ios/Temp/UIViewController+ModalHelpers.swift @@ -119,6 +119,11 @@ extension UIViewController { return window.currentModalLevel; }; + + public var modalMetrics: ModalViewControllerMetrics { + .init(viewController: self); + }; + public var presentationControllerMetrics: PresentationControllerMetrics? { self.presentationController?.presentationControllerMetrics; };