From c36f21111eae6ff79a0703e233fe13bee7ca6587 Mon Sep 17 00:00:00 2001 From: Dominic Go <18517029+dominicstop@users.noreply.github.com> Date: Fri, 7 Apr 2023 02:52:42 +0800 Subject: [PATCH] =?UTF-8?q?=E2=AD=90=EF=B8=8F=20Impl:=20`wasDismissViaGest?= =?UTF-8?q?ureCancelled`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Summary: Impl. `RNIModalPresentationStateMachine.wasDismissViaGestureCancelled`. --- .../React Native/RNIModal/RNIModalPresentationState.swift | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/ios/src_library/React Native/RNIModal/RNIModalPresentationState.swift b/ios/src_library/React Native/RNIModal/RNIModalPresentationState.swift index 667a351e..bff65c55 100644 --- a/ios/src_library/React Native/RNIModal/RNIModalPresentationState.swift +++ b/ios/src_library/React Native/RNIModal/RNIModalPresentationState.swift @@ -101,6 +101,13 @@ public struct RNIModalPresentationStateMachine { var onDismissWillCancel: (() -> Void)?; var onDismissDidCancel: (() -> Void)?; + // MARK: - Computed Properties + // --------------------------- + + var wasDismissViaGestureCancelled: Bool { + self.statePrev.isDismissViaGestureCancelling + }; + // MARK: - Functions // -----------------