diff --git a/ios/Temp/ModalSheetState.swift b/ios/Temp/ModalSheetState.swift index d7111f78..3504adfc 100644 --- a/ios/Temp/ModalSheetState.swift +++ b/ios/Temp/ModalSheetState.swift @@ -61,6 +61,11 @@ public enum ModalSheetState: String { self.modalState.isDismissed; }; + public var isInPresentation: Bool { + !self.isDraggingViaGesture + && self.modalState.isInPresentation + }; + public var isIdle: Bool { switch self { case .draggingViaGesture: diff --git a/ios/Temp/ModalState.swift b/ios/Temp/ModalState.swift index 8b8fc3e3..5cb4b67b 100644 --- a/ios/Temp/ModalState.swift +++ b/ios/Temp/ModalState.swift @@ -44,6 +44,10 @@ public enum ModalState: String { }; }; + public var isInPresentation: Bool { + self.isPresenting || self.isDismissing; + }; + public var modalSheetState: ModalSheetState { switch self { case .presenting: