---
title: "strokeBorder(_:lineWidth:antialiased:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/shapeview/strokeborder(_:linewidth:antialiased:)"
---

# strokeBorder(_:lineWidth:antialiased:)

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

## Declaration

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

## Discussion

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

- [fill(_:style:)](swiftui/shapeview/fill(_:style:).md)
- [stroke(_:style:antialiased:)](swiftui/shapeview/stroke(_:style:antialiased:).md)
- [stroke(_:lineWidth:antialiased:)](swiftui/shapeview/stroke(_:linewidth:antialiased:).md)
- [strokeBorder(_:style:antialiased:)](swiftui/shapeview/strokeborder(_:style:antialiased:).md)
