---
title: fillColor
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/cashapelayer/fillcolor
---

# fillColor

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

## Declaration

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

## Discussion

Discussion Setting fillColor to nil results in no fill being rendered. Default is opaque black.

## See Also

### Accessing Shape Style Properties

- [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)
- [strokeColor](quartzcore/cashapelayer/strokecolor.md)
- [strokeStart](quartzcore/cashapelayer/strokestart.md)
- [strokeEnd](quartzcore/cashapelayer/strokeend.md)
