From b11bd335d7a1753b3d5f0f132a254d2d6914f4a5 Mon Sep 17 00:00:00 2001 From: Brody Roberts Date: Mon, 14 Jul 2025 15:15:12 -0700 Subject: [PATCH] Fixed bug --- Sources/FlowStack/View+InteractiveDismiss.swift | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Sources/FlowStack/View+InteractiveDismiss.swift b/Sources/FlowStack/View+InteractiveDismiss.swift index 60b64f8..0ed2167 100644 --- a/Sources/FlowStack/View+InteractiveDismiss.swift +++ b/Sources/FlowStack/View+InteractiveDismiss.swift @@ -65,7 +65,7 @@ struct InteractiveDismissContainer: UIViewControllerRepresentable { class InteractiveDismissViewController: UIHostingController { - var coordinator: InteractiveDismissCoordinator + private var coordinator: InteractiveDismissCoordinator private var frameObservation: NSKeyValueObservation? init(rootView: Content, coordinator: InteractiveDismissCoordinator) { @@ -83,7 +83,7 @@ class InteractiveDismissViewController: UIHostingController threshold || (offset.x > threshold && isEdge) @@ -224,8 +227,9 @@ class InteractiveDismissCoordinator: NSObject, ObservableObject, UIGestureRecogn isEnabled = false onDismiss() isPastThreshold = false + } else { + isUpdating = false } - onEnded(shouldDismiss) } }