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

# strokeBorder(lineWidth:antialiased:)

Returns a view that is the result of filling the lineWidth-sized border (aka inner stroke) of self with the foreground color. This is equivalent to insetting self by lineWidth / 2 and stroking the resulting shape with lineWidth as the line-width.

## Declaration

```swift
func strokeBorder(lineWidth: CGFloat = 1, antialiased: Bool = true) -> some View

```

## See Also

### Setting the stroke border characteristics

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