---
title: setFill()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nscolor/setfill()
---

# setFill()

Sets the fill color of subsequent drawing to the color object’s color.

## Declaration

```swift
func setFill()
```

## Discussion

Discussion This method should be implemented in subclasses.

## See Also

### Drawing with colors

- [drawSwatch(in:)](appkit/nscolor/drawswatch(in:).md)
- [set()](appkit/nscolor/set().md)
- [setStroke()](appkit/nscolor/setstroke().md)
