<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/StrokeBorderShapeView",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI21StrokeBorderShapeViewV"
  },
  "title" : "StrokeBorderShapeView"
}
-->

# StrokeBorderShapeView

A shape provider that strokes the border of its shape.

```
@frozen nonisolated struct StrokeBorderShapeView<Content, Style, Background> where Content : InsettableShape, Style : ShapeStyle, Background : View
```

## Overview

You don’t create this type directly; it’s the return type of
`Shape.strokeBorder`.

## Topics

### Creating a stroke border shape view

[`init(shape: Content, style: Style, strokeStyle: StrokeStyle, isAntialiased: Bool, background: Background)`](/documentation/SwiftUI/StrokeBorderShapeView/init(shape:style:strokeStyle:isAntialiased:background:))

Create a stroke border shape.

### Getting shape view properties

[`var background: Background`](/documentation/SwiftUI/StrokeBorderShapeView/background)

The background shown beneath this view.

[`var isAntialiased: Bool`](/documentation/SwiftUI/StrokeBorderShapeView/isAntialiased)

Whether this shape should be drawn antialiased.

[`var shape: Content`](/documentation/SwiftUI/StrokeBorderShapeView/shape)

The shape that this type draws and provides for other drawing
operations.

[`var strokeStyle: StrokeStyle`](/documentation/SwiftUI/StrokeBorderShapeView/strokeStyle)

The stroke style used when stroking this view’s shape.

[`var style: Style`](/documentation/SwiftUI/StrokeBorderShapeView/style)

The style that strokes the border of this view’s shape.

## Relationships

### Conforms To

[`View`](/documentation/SwiftUI/View)

[`ShapeView`](/documentation/SwiftUI/ShapeView)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)