---
title: "init(polyline:)"
framework: mapkit
role: symbol
role_heading: Initializer
path: "mapkit/mkpolylinerenderer/init(polyline:)"
---

# init(polyline:)

Creates a new overlay view using the specified polyline overlay object.

## Declaration

```swift
init(polyline: MKPolyline)
```

## Parameters

- `polyline`: The polyline overlay containing information about the area the renderer draws. This object requires at least two points defining the line segment to draw. This parameter can’t be nil.

## Return Value

Return Value An initialized polyline renderer object.
