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) } }