---
title: StrokeShapeView
framework: swiftui
role: symbol
role_heading: Structure
path: swiftui/strokeshapeview
---

# StrokeShapeView

A shape provider that strokes its shape.

## Declaration

```swift
@frozen nonisolated struct StrokeShapeView<Content, Style, Background> where Content : Shape, Style : ShapeStyle, Background : View
```

## Overview

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

## Topics

### Creating a stroke shape view

- [init(shape:style:strokeStyle:isAntialiased:background:)](swiftui/strokeshapeview/init(shape:style:strokestyle:isantialiased:background:).md)

### Getting shape view properties

- [background](swiftui/strokeshapeview/background.md)
- [isAntialiased](swiftui/strokeshapeview/isantialiased.md)
- [shape](swiftui/strokeshapeview/shape.md)
- [strokeStyle](swiftui/strokeshapeview/strokestyle.md)
- [style](swiftui/strokeshapeview/style.md)

## Relationships

### Conforms To

- [ShapeView](swiftui/shapeview.md)
- [View](swiftui/view.md)

## See Also

### Defining shape behavior

- [ShapeView](swiftui/shapeview.md)
- [Shape](swiftui/shape.md)
- [AnyShape](swiftui/anyshape.md)
- [ShapeRole](swiftui/shaperole.md)
- [StrokeStyle](swiftui/strokestyle.md)
- [StrokeBorderShapeView](swiftui/strokebordershapeview.md)
- [FillStyle](swiftui/fillstyle.md)
- [FillShapeView](swiftui/fillshapeview.md)
