[ios] Fixed wrong ObjC function name that caused warnings

Signed-off-by: Alexander Borsuk <me@alex.bio>
This commit is contained in:
Alexander Borsuk
2025-08-01 13:05:37 +02:00
committed by Yannik Bloscheck
parent 9d8e84ae5a
commit 3b1551be52
3 changed files with 5 additions and 4 deletions

View File

@@ -40,7 +40,7 @@ NS_SWIFT_NAME(FrameworkHelper)
+ (MWMMarkGroupID)invalidCategoryId;
+ (void)zoomMap:(MWMZoomMode)mode;
+ (void)moveMap:(UIOffset)offset;
+ (void)scrollMap:(double)distanceX :(double) distanceY;
+ (void)scrollMapToDistanceX:(double)x andY:(double)y;
+ (void)deactivateMapSelection;
+ (void)switchMyPositionMode;
+ (void)stopLocationFollow;

View File

@@ -114,8 +114,9 @@
GetFramework().Move(offset.horizontal, offset.vertical, true);
}
+ (void)scrollMap:(double) distanceX :(double) distanceY {
GetFramework().Scroll(distanceX, distanceY);
+ (void)scrollMapToDistanceX:(double)x andY:(double)y
{
GetFramework().Scroll(x, y);
}
+ (void)deactivateMapSelection {

View File

@@ -423,7 +423,7 @@ extension CarPlayService: CPMapTemplateDelegate {
func mapTemplate(_ mapTemplate: CPMapTemplate, didUpdatePanGestureWithTranslation translation: CGPoint, velocity: CGPoint) {
let scaleFactor = self.carplayVC?.mapView?.contentScaleFactor ?? 1
FrameworkHelper.scrollMap(-scaleFactor * translation.x, -scaleFactor * translation.y);
FrameworkHelper.scrollMap(toDistanceX:-scaleFactor * translation.x, andY:-scaleFactor * translation.y);
}
func mapTemplate(_ mapTemplate: CPMapTemplate, startedTrip trip: CPTrip, using routeChoice: CPRouteChoice) {