---
title: "mapView(_:regionWillChangeAnimated:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapviewdelegate/mapview(_:regionwillchangeanimated:)"
---

# mapView(_:regionWillChangeAnimated:)

Tells the delegate when the region the map view is displaying is about to change.

## Declaration

```swift
optional func mapView(_ mapView: MKMapView, regionWillChangeAnimated animated: Bool)
```

## Parameters

- `mapView`: The map view with the visible region that’s about to change.
- `animated`: If doc://com.apple.documentation/documentation/Swift/true, the map view animates the change to the new region. If doc://com.apple.documentation/documentation/Swift/false, the map view makes the change immediately.

## Discussion

Discussion The framework calls this method at the beginning of a change to the map’s visible region.

## See Also

### Related Documentation

- [Location and Maps Programming Guide](apple-archive/documentation/UserExperience/Conceptual/LocationAwarenessPG/Introduction.md)

### Responding to map position changes

- [mapViewDidChangeVisibleRegion(_:)](mapkit/mkmapviewdelegate/mapviewdidchangevisibleregion(_:).md)
- [mapView(_:regionDidChangeAnimated:)](mapkit/mkmapviewdelegate/mapview(_:regiondidchangeanimated:).md)
