---
title: "stroke(_:style:)"
framework: mapkit
role: symbol
role_heading: Instance Method
path: "mapkit/mapcontent/stroke(_:style:)"
---

# stroke(_:style:)

Applies the given shape style to drawn map overlays using the stroke style you specify.

## Declaration

```swift
@MainActor @preconcurrency func stroke(_ content: some ShapeStyle, style: StrokeStyle) -> some MapContent

```

## Parameters

- `content`: The shape style to apply.
- `style`: The stroke style to apply.

## See Also

### Setting stroke properties

- [stroke(_:lineWidth:)](mapkit/mapcontent/stroke(_:linewidth:).md)
- [stroke(lineWidth:)](mapkit/mapcontent/stroke(linewidth:).md)
- [strokeStyle(style:)](mapkit/mapcontent/strokestyle(style:).md)
