Contents

stroke(_:lineWidth:)

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

Declaration

@MainActor @preconcurrency func stroke(_ content: some ShapeStyle, lineWidth: CGFloat = 1) -> some MapContent

Parameters

  • content:

    The shape style to apply.

  • lineWidth:

    The line width to draw the stroke with.

Return Value

Returns MapContent drawn with the ShapeStyle and lineWidth you specified.

See Also

Setting stroke properties