---
title: "applying(_:)"
framework: pencilkit
role: symbol
role_heading: Instance Method
path: "pencilkit/pkdrawingreference/applying(_:)"
---

# applying(_:)

Returns a new drawing object by applying the specified transform to a copy of the current object’s contents.

## Declaration

```swift
func applying(_ transform: CGAffineTransform) -> PKDrawing
```

## Parameters

- `transform`: The transform to apply to the drawing.

## Return Value

Return Value A new drawing created by applying the specified transform to the current object.

## See Also

### Modifying the drawing

- [appendingStrokes(_:)](pencilkit/pkdrawingreference/appendingstrokes(_:).md)
- [appending(_:)](pencilkit/pkdrawingreference/appending(_:).md)
