---
title: eraseColor()
framework: quartz
role: symbol
role_heading: Instance Method
path: quartz/qcview/erasecolor()
---

# eraseColor()

Retrieves the current color used to erase the view.

## Declaration

```swift
func eraseColor() -> NSColor!
```

## Return Value

Return Value The color object previously set using the setEraseColor(_:) method.

## See Also

### Managing the Erase Color

- [erase()](quartz/qcview/erase().md)
- [setEraseColor(_:)](quartz/qcview/seterasecolor(_:).md)
