-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[ios, macos] clarified documentation for newCamera param of the shouldChangeFromCamera delegate #14680
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Just another copy change.
@@ -66,7 +66,7 @@ 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this should be also changed to:
A boolean value indicating wether the map view should stay at
oldCamera
or transition tonewCamera
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like @fabian-guerra's suggestion, so consider this approved with his suggested change 👍 thanks!
Why not do it the other way around? Passing 2 examples why it's so useful to edit
I think it's not the documentation what should be changed but logic. The documentation is pointing the right direction. |
@natalia-osa the update in the documentation is to reflect what is currently happening. The value passed in We also welcome contributions. |
…dChangeFromCamera delegate part 2
1f3acf3
to
0a70082
Compare
The newCamera parameter available in the
shouldChangeFromCamera:
delegate is described as if it becomes a modifiable new camera object - this is not entirely true, and this update to the documentation describes how it works a bit more clearly.cc @captainbarbosa @fabian-guerra