---
title: strokeStyle
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/strokeshapeview/strokestyle
---

# strokeStyle

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

## Declaration

```swift
nonisolated var strokeStyle: StrokeStyle { get set }
```

## See Also

### Getting shape view properties

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