From 250f1d5a6c668fa83b1fb9fb30e63fc92502b81f Mon Sep 17 00:00:00 2001 From: Dominic Go <18517029+dominicstop@users.noreply.github.com> Date: Fri, 14 Apr 2023 23:37:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Gloss:=20Update=20Spacing?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../React Native/RNIModalView/RNIModalView.swift | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/ios/src_library/React Native/RNIModalView/RNIModalView.swift b/ios/src_library/React Native/RNIModalView/RNIModalView.swift index 806d6002..a4db0150 100644 --- a/ios/src_library/React Native/RNIModalView/RNIModalView.swift +++ b/ios/src_library/React Native/RNIModalView/RNIModalView.swift @@ -660,7 +660,9 @@ extension RNIModalView: UIAdaptivePresentationControllerDelegate { /// * 3 - `viewWillAppear` /// * 4 - `viewDidAppear` /// - public func presentationControllerWillDismiss(_ presentationController: UIPresentationController) { + public func presentationControllerWillDismiss( + _ presentationController: UIPresentationController + ) { self.modalPresentationState.set(state: .DISMISSING_GESTURE); #if DEBUG @@ -673,7 +675,9 @@ extension RNIModalView: UIAdaptivePresentationControllerDelegate { #endif }; - public func presentationControllerDidDismiss(_ presentationController: UIPresentationController) { + public func presentationControllerDidDismiss( + _ presentationController: UIPresentationController + ) { self.modalPresentationNotificationDelegate .notifyOnModalDidHide(sender: self); @@ -690,7 +694,9 @@ extension RNIModalView: UIAdaptivePresentationControllerDelegate { /// No other "view controller"-related lifecycle method was trigger in /// response to this event being invoked. /// - public func presentationControllerDidAttemptToDismiss(_ presentationController: UIPresentationController) { + public func presentationControllerDidAttemptToDismiss( + _ presentationController: UIPresentationController + ) { self.onModalAttemptDismiss?( self.synthesizedBaseEventData.synthesizedJSDictionary );