diff --git a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift index fa2d789..6c0afa9 100644 --- a/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift +++ b/ios/google_navigation_flutter/Sources/google_navigation_flutter/GoogleMapsNavigationView.swift @@ -89,13 +89,13 @@ public class GoogleMapsNavigationView: NSObject, FlutterPlatformView, ViewSettle _mapConfiguration.apply(to: _mapView) super.init() - - _navigationUIEnabledPreference = navigationUIEnabledPreference - applyNavigationUIEnabledPreference() - registerView() + _mapView.delegate = self _mapView.viewSettledDelegate = self + + _navigationUIEnabledPreference = navigationUIEnabledPreference + applyNavigationUIEnabledPreference() } deinit {