PinchGestureBehavior
@_spi(Experimental)
public enum PinchGestureBehavior
Represents the available pinch gesture implementations. Each implementation has some shortcomings, and we hope to eliminate the need to make this trade-off in a future release.
-
This case represents the pinch gesture behavior that was in place in v10.1. It resets the camera to the initial state at each frame, resulting in the issue reported in https://github.com/mapbox/mapbox-maps-ios/issues/775
Declaration
Swift
case tracksTouchLocationsWhenPanningAfterZoomChange
-
This case represents a new pinch gesture behavior that solves https://github.com/mapbox/mapbox-maps-ios/issues/775 but introduces an issue where panning while zooming doesn’t work as expected: https://github.com/mapbox/mapbox-maps-ios/issues/864
Declaration
Swift
case doesNotResetCameraAtEachFrame