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 diff --git a/Package.swift b/Package.swift index 8209ce58..d1520e8c 100644 --- a/Package.swift +++ b/Package.swift @@ -17,7 +17,7 @@ let package = Package( dependencies: [ .package(url: "https://github.com/flitsmeister/mapbox-directions-swift", exact: "0.23.3"), .package(url: "https://github.com/flitsmeister/turf-swift", exact: "0.2.2"), - .package(url: "https://github.com/maplibre/maplibre-gl-native-distribution.git", from: "6.0.0"), + .package(url: "https://github.com/maplibre/maplibre-gl-native-distribution.git", from: "6.3.0"), .package(url: "https://github.com/ceeK/Solar.git", exact: "3.0.1"), .package(url: "https://github.com/nicklockwood/SwiftFormat.git", from: "0.53.6") ],