---
title: "regionThatFits(_:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mkmapview/regionthatfits(_:)"
---

# regionThatFits(_:)

Adjusts the aspect ratio of the specified region to ensure that it fits in the map view’s frame.

## Declaration

```swift
func regionThatFits(_ region: MKCoordinateRegion) -> MKCoordinateRegion
```

## Parameters

- `region`: The initial region whose span you want to adjust.

## Return Value

Return Value A region that is still centered on the same point of the map but whose span values are adjusted to fit in the map view’s frame.

## Discussion

Discussion You can use this method to normalize the region values before displaying them in the map. This method returns a new region that both contains the specified region and fits neatly inside the map view’s frame.

## See Also

### Adjusting map regions and rectangles

- [mapRectThatFits(_:)](mapkit/mkmapview/maprectthatfits(_:).md)
- [mapRectThatFits(_:edgePadding:)](mapkit/mkmapview/maprectthatfits(_:edgepadding:).md)
