---
title: strokeColor
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/cashapelayer/strokecolor
---

# strokeColor

The color used to stroke the shape’s path. Animatable.

## Declaration

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

## Discussion

Discussion Setting strokeColor to nil results in no stroke being rendered. Default is nil.

## See Also

### Accessing Shape Style Properties

- [fillColor](quartzcore/cashapelayer/fillcolor.md)
- [fillRule](quartzcore/cashapelayer/fillrule.md)
- [lineCap](quartzcore/cashapelayer/linecap.md)
- [lineDashPattern](quartzcore/cashapelayer/linedashpattern.md)
- [lineDashPhase](quartzcore/cashapelayer/linedashphase.md)
- [lineJoin](quartzcore/cashapelayer/linejoin.md)
- [lineWidth](quartzcore/cashapelayer/linewidth.md)
- [miterLimit](quartzcore/cashapelayer/miterlimit.md)
- [strokeStart](quartzcore/cashapelayer/strokestart.md)
- [strokeEnd](quartzcore/cashapelayer/strokeend.md)
