diff --git a/MapboxNavigation/NavigationMapView.swift b/MapboxNavigation/NavigationMapView.swift index 8efbd9c3..66abeca3 100644 --- a/MapboxNavigation/NavigationMapView.swift +++ b/MapboxNavigation/NavigationMapView.swift @@ -257,9 +257,9 @@ open class NavigationMapView: MLNMapView, UIGestureRecognizerDelegate { super.anchorPoint(forGesture: gesture) } } - - override open func mapViewDidFinishRenderingFrameFullyRendered(_ fullyRendered: Bool) { - super.mapViewDidFinishRenderingFrameFullyRendered(fullyRendered) + + override open func mapViewDidFinishRenderingFrameFullyRendered(_ fullyRendered: Bool, frameEncodingTime: Double, frameRenderingTime: Double) { + super.mapViewDidFinishRenderingFrameFullyRendered(fullyRendered, frameEncodingTime: frameEncodingTime, frameRenderingTime: frameRenderingTime) guard self.shouldPositionCourseViewFrameByFrame else { return } guard let location = userLocationForCourseTracking else { return } diff --git a/MapboxNavigationObjc/MLNMapView+MLNNavigationAdditions.h b/MapboxNavigationObjc/MLNMapView+MLNNavigationAdditions.h index 8af12715..8ea47be9 100644 --- a/MapboxNavigationObjc/MLNMapView+MLNNavigationAdditions.h +++ b/MapboxNavigationObjc/MLNMapView+MLNNavigationAdditions.h @@ -2,6 +2,8 @@ @interface MLNMapView (MLNNavigationAdditions) -- (void)mapViewDidFinishRenderingFrameFullyRendered:(BOOL)fullyRendered; +- (void)mapViewDidFinishRenderingFrameFullyRendered:(BOOL)fullyRendered + frameEncodingTime:(double)frameEncodingTime + frameRenderingTime:(double)frameRenderingTime; @end