From be6de29cfe24e58d70d4f1283b0683027ed4c065 Mon Sep 17 00:00:00 2001 From: Ken Pochubay Date: Tue, 2 Dec 2025 05:40:44 -0500 Subject: [PATCH] Update NavigationFactory.swift --- ios/Classes/NavigationFactory.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/Classes/NavigationFactory.swift b/ios/Classes/NavigationFactory.swift index c6f847db..279a5a1f 100644 --- a/ios/Classes/NavigationFactory.swift +++ b/ios/Classes/NavigationFactory.swift @@ -439,6 +439,10 @@ extension NavigationFactory : NavigationViewControllerDelegate { return _shouldReRoute } + public func navigationViewController(_ navigationViewController: NavigationViewController, didRerouteFrom location: CLLocation) { + sendEvent(eventType: MapBoxEventType.user_off_route) + } + public func navigationViewController(_ navigationViewController: NavigationViewController, didSubmitArrivalFeedback feedback: EndOfRouteFeedback) { if(_eventSink != nil)