diff --git a/MapboxNavigation/NavigationViewController.swift b/MapboxNavigation/NavigationViewController.swift index ad001ad1e9f..f03eacd2d57 100644 --- a/MapboxNavigation/NavigationViewController.swift +++ b/MapboxNavigation/NavigationViewController.swift @@ -277,11 +277,6 @@ public class NavigationViewController: NavigationPulleyViewController, RouteMapV self.delegate = self } - public override func viewDidDisappear(_ animated: Bool) { - super.viewDidDisappear(animated) - suspendNotifications() - } - public override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) diff --git a/MapboxNavigation/RouteManeuverViewController.swift b/MapboxNavigation/RouteManeuverViewController.swift index 3e586e6ae7f..733ce2fa32d 100644 --- a/MapboxNavigation/RouteManeuverViewController.swift +++ b/MapboxNavigation/RouteManeuverViewController.swift @@ -87,8 +87,7 @@ class RouteManeuverViewController: UIViewController { resumeNotifications() } - override func viewWillDisappear(_ animated: Bool) { - super.viewWillDisappear(animated) + deinit { suspendNotifications() }