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

# foregroundStyle(_:)

Specifies the shape style used to fill content in drawing map overlays.

## Declaration

```swift
@MainActor @preconcurrency func foregroundStyle(_ content: some ShapeStyle) -> some MapContent

```

## Parameters

- `content`: The shape style to apply to the overlay.

## Return Value

Return Value Returns MapContent with the foreground style you specified.

## See Also

### Setting the content style

- [tint(_:)](mapkit/mapcontent/tint(_:).md)
