# `GSShape.strokeGradient`

*Instance Property*

The gradient used for the stroke.

## Declaration

```swift
var strokeGradient: GSGradient? { get set }
```

```objc
@property (nonatomic, strong) GSGradient * strokeGradient;
```

```python
strokeGradient() -> GSGradient
setStrokeGradient_(strokeGradient: GSGradient)
```

## Discussion

The gradient takes precedence over the stroke color. Set the value to `nil` to remove the gradient stroke paint.

> **See Also**
> [`GSShapeKey.GSShapeKeyStrokeGradient`](/Core/GlyphsCore/GSShapeKey/GSShapeKeyStrokeGradient)

## See Also

### Stroke Paint

- [`GSShape.strokePaint`](/Core/GlyphsCore/GSShape/strokePaint) — The effective stroke paint.
- [`GSShape.strokeColor`](/Core/GlyphsCore/GSShape/strokeColor) — The solid color used for the stroke.

