# `GSShape.fillGradient`

*Instance Property*

The gradient used for the fill.

## Declaration

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

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

```python
fillGradient() -> GSGradient
setFillGradient_(fillGradient: GSGradient)
```

## Discussion

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

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

## See Also

### Fill Paint

- [`GSShape.fillPaint`](/Core/GlyphsCore/GSShape/fillPaint) — The effective fill paint.
- [`GSShape.fillColor`](/Core/GlyphsCore/GSShape/fillColor) — The solid color used for the fill.

