From 163c085c38464b583215c3849342b74fb2aeb7f8 Mon Sep 17 00:00:00 2001 From: Sam Fader Date: Wed, 15 May 2019 18:30:28 -0700 Subject: [PATCH] [ios, macos] clarified documentation for newCamera param of the shouldChangeFromCamera delegate (#14680) * [ios, macos] clarified documentation for newCamera in shouldChangeFromCamera * [ios, macos] clarified documentation for newCamera param of the shouldChangeFromCamera delegate part 2 --- platform/ios/src/MGLMapViewDelegate.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/ios/src/MGLMapViewDelegate.h b/platform/ios/src/MGLMapViewDelegate.h index 055d4c951..f5249d179 100644 --- a/platform/ios/src/MGLMapViewDelegate.h +++ b/platform/ios/src/MGLMapViewDelegate.h @@ -66,10 +66,10 @@ NS_ASSUME_NONNULL_BEGIN gesture is recognized. If this method returns `NO`, the map view’s camera continues to be this camera. @param newCamera The expected camera after the gesture completes. If this - method returns `YES`, this camera becomes the map view’s camera. + method returns `YES`, the viewport of the map will transition to the new camera. Note that the new camera cannot be modified. @param reason The reason for the camera change. @return A Boolean value indicating whether the map view should stay at - `oldCamera` or change to `newCamera`. + `oldCamera` or transition to `newCamera`. @note If this method is implemented `-mapView:shouldChangeFromCamera:toCamera:` will not be called. */