---
title: "erasingStrokePath(_:mask:transform:)"
framework: pencilkit
role: symbol
role_heading: Instance Method
path: "pencilkit/pkdrawingreference/erasingstrokepath(_:mask:transform:)"
---

# erasingStrokePath(_:mask:transform:)

## Declaration

```swift
func erasingStrokePath(_ eraserPath: PKStrokePath, mask: UIBezierPath?, transform: CGAffineTransform) -> PKDrawing
```

```swift
func erasingStrokePath(_ eraserPath: PKStrokePath, mask: NSBezierPath?, transform: CGAffineTransform) -> PKDrawing
```
