From eac07cb34c4d0b8bb89e8dab00f52e75f50efbd5 Mon Sep 17 00:00:00 2001 From: Dominic Go Date: Sun, 29 Sep 2024 16:58:44 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20Fix:=20`ModalSheetState.isGeneri?= =?UTF-8?q?c`=20(Again)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Temp/ModalSheetState.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/Temp/ModalSheetState.swift b/ios/Temp/ModalSheetState.swift index 7611f7fb..f0521a6a 100644 --- a/ios/Temp/ModalSheetState.swift +++ b/ios/Temp/ModalSheetState.swift @@ -96,6 +96,10 @@ public enum ModalSheetState: String { }; public func isGeneric(comparedTo otherState: Self) -> Bool { + guard self.isSameStep(comparedTo: otherState) else { + return false; + }; + switch(self, otherState){ case (.draggingViaGesture, let otherState) where otherState.isInPresentation: return false;