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

# path

The path representing the overlay’s shape.

## Declaration

```swift
var path: CGPath! { get set }
```

## Discussion

Discussion Getting the value of this property causes the method to create the path (using the createPath() method) if it doesn’t already exist. You can assign a path object to this property explicitly. When assigning a new path object to this property, the overlay renderer stores a strong reference to the path you provide.

## See Also

### Creating and managing the path

- [createPath()](mapkit/mkoverlaypathrenderer/createpath().md)
- [invalidatePath()](mapkit/mkoverlaypathrenderer/invalidatepath().md)
