Contents

foregroundStyle(_:)

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

Declaration

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

Parameters

  • content:

    The shape style to apply to the overlay.

Return Value

Returns MapContent with the foreground style you specified.

See Also

Setting the content style