---
title: "init(mapView:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/mkscaleview/init(mapview:)"
---

# init(mapView:)

Creates a scale view and associates it with the specified map view.

## Declaration

```swift
convenience init(mapView: MKMapView?)
```

## Parameters

- `mapView`: The map to associate with the scale view. The scale view automatically updates to reflect the scale of this map.

## Return Value

Return Value An initialized scale view.
