# `GSShape.strokeColor`

*Instance Property*

The solid color used for the stroke.

## Declaration

```swift
var strokeColor: NSColor? { get set }
```

```objc
@property (nonatomic, strong) NSColor * strokeColor;
```

```python
strokeColor() -> NSColor
setStrokeColor_(strokeColor: NSColor)
```

## Discussion

The stroke gradient takes precedence when both paints are set. Set the value to `nil` to remove the solid stroke paint.

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

## See Also

### Stroke Paint

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

