Instance Property

isZoomEnabled

A Boolean value that determines whether the user may use pinch gestures to zoom in and out of the map.

Declaration

var isZoomEnabled: Bool { get set }

Discussion

This property controls only user interactions with the map. If you set the value of this property to false, you may still change the zoom level programmatically by changing the value in the region property.

The default value of this property is true.

See Also

Accessing Map Properties

var mapType: MKMapType

The type of data displayed by the map view.

var isScrollEnabled: Bool

A Boolean value that determines whether the user may scroll around the map.

var isPitchEnabled: Bool

A Boolean value indicating whether the map camera’s pitch information is used.

var isRotateEnabled: Bool

A Boolean value indicating whether the map camera’s heading information is used.