From 797b6a3258a33c4c9dbdca6b90106c94cbc74240 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Mon, 7 Oct 2024 08:47:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=20Refactor:=20Rename=20to=20`RNIPr?= =?UTF-8?q?esentationControllerMetrics`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...erMetrics.swift => RNIPresentationControllerMetrics.swift} | 4 ++-- ios/Temp/UIPresentationController+Helpers.swift | 2 +- ios/Temp/UIViewController+ModalHelpers.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename ios/Temp/{PresentationControllerMetrics.swift => RNIPresentationControllerMetrics.swift} (94%) diff --git a/ios/Temp/PresentationControllerMetrics.swift b/ios/Temp/RNIPresentationControllerMetrics.swift similarity index 94% rename from ios/Temp/PresentationControllerMetrics.swift rename to ios/Temp/RNIPresentationControllerMetrics.swift index d79b6f5f..c1827104 100644 --- a/ios/Temp/PresentationControllerMetrics.swift +++ b/ios/Temp/RNIPresentationControllerMetrics.swift @@ -1,5 +1,5 @@ // -// PresentationControllerMetrics.swift +// RNIPresentationControllerMetrics.swift // react-native-ios-modal // // Created by Dominic Go on 9/27/24. @@ -9,7 +9,7 @@ import UIKit import DGSwiftUtilities -public struct PresentationControllerMetrics: DictionaryRepresentationSynthesizing { +public struct RNIPresentationControllerMetrics: DictionaryRepresentationSynthesizing { public var instanceID: String; diff --git a/ios/Temp/UIPresentationController+Helpers.swift b/ios/Temp/UIPresentationController+Helpers.swift index e3886a67..fe885a95 100644 --- a/ios/Temp/UIPresentationController+Helpers.swift +++ b/ios/Temp/UIPresentationController+Helpers.swift @@ -10,7 +10,7 @@ import UIKit extension UIPresentationController { - public var presentationControllerMetrics: PresentationControllerMetrics { + public var presentationControllerMetrics: RNIPresentationControllerMetrics { .init(from: self); }; }; diff --git a/ios/Temp/UIViewController+ModalHelpers.swift b/ios/Temp/UIViewController+ModalHelpers.swift index 9a2a9f2b..bf65646c 100644 --- a/ios/Temp/UIViewController+ModalHelpers.swift +++ b/ios/Temp/UIViewController+ModalHelpers.swift @@ -146,7 +146,7 @@ extension UIViewController { .init(viewController: self); }; - public var presentationControllerMetrics: PresentationControllerMetrics? { + public var presentationControllerMetrics: RNIPresentationControllerMetrics? { self.presentationController?.presentationControllerMetrics; }; };