---
title: lineDashPattern
framework: mapkit
role: symbol
role_heading: Instance Property
path: mapkit/mkoverlaypathrenderer/linedashpattern
---

# lineDashPattern

An array of numbers specifying the dash pattern to use for the path.

## Declaration

```swift
var lineDashPattern: [NSNumber]? { get set }
```

## Discussion

Discussion The array contains one or more NSNumber objects that indicate the lengths (in points) of the line segments and gaps in the pattern. The values in the array alternate, starting with the first line segment length, followed by the first gap length, followed by the second line segment length, and so on. This property is nil by default, which indicates no line dash pattern.

## See Also

### Accessing the drawing attributes

- [fillColor](mapkit/mkoverlaypathrenderer/fillcolor.md)
- [strokeColor](mapkit/mkoverlaypathrenderer/strokecolor.md)
- [lineWidth](mapkit/mkoverlaypathrenderer/linewidth.md)
- [lineJoin](mapkit/mkoverlaypathrenderer/linejoin.md)
- [lineCap](mapkit/mkoverlaypathrenderer/linecap.md)
- [miterLimit](mapkit/mkoverlaypathrenderer/miterlimit.md)
- [lineDashPhase](mapkit/mkoverlaypathrenderer/linedashphase.md)
