---
title: MKPolylineRenderer
framework: mapkit
role: symbol
role_heading: Class
path: mapkit/mkpolylinerenderer
---

# MKPolylineRenderer

A visual representation of any polyline overlay object.

## Declaration

```swift
class MKPolylineRenderer
```

## Overview

Overview This renderer strokes the line only; it doesn’t fill it. You can change the color and other drawing attributes of the polyline by modifying the properties it inherits from the main class. You typically use this class as-is and don’t subclass it.

## Topics

### Creating a polyline renderer

- [init(polyline:)](mapkit/mkpolylinerenderer/init(polyline:).md)

### Accessing the polyline overlay

- [polyline](mapkit/mkpolylinerenderer/polyline.md)

### Accessing the stroke

- [strokeStart](mapkit/mkpolylinerenderer/strokestart.md)
- [strokeEnd](mapkit/mkpolylinerenderer/strokeend.md)

## Relationships

### Inherits From

- [MKOverlayPathRenderer](mapkit/mkoverlaypathrenderer.md)

### Inherited By

- [MKGradientPolylineRenderer](mapkit/mkgradientpolylinerenderer.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)

## See Also

### Multiple segment lines

- [MKPolyline](mapkit/mkpolyline.md)
- [MKGeodesicPolyline](mapkit/mkgeodesicpolyline.md)
- [MKMultiPolyline](mapkit/mkmultipolyline.md)
- [MKMultiPolylineRenderer](mapkit/mkmultipolylinerenderer.md)
- [MKGradientPolylineRenderer](mapkit/mkgradientpolylinerenderer.md)
