Contents

strokeBorder(_:lineWidth:antialiased:)

Returns a view that’s the result of filling an inner stroke of this view with the content you supply.

Declaration

nonisolated func strokeBorder<S>(_ content: S = .foreground, lineWidth: CGFloat = 1, antialiased: Bool = true) -> StrokeBorderShapeView<Self.Content, S, Self> where S : ShapeStyle

Discussion

This is equivalent to insetting self by lineWidth / 2 and stroking the resulting shape with lineWidth as the line-width.

See Also

Modify the shape