---
title: "transformed(using:)"
framework: pencilkit
role: symbol
role_heading: Instance Method
path: "pencilkit/pkdrawing-swift.struct/transformed(using:)"
---

# transformed(using:)

Applies the specified transform and returns a new drawing.

## Declaration

```swift
func transformed(using transform: CGAffineTransform) -> PKDrawing
```

## Parameters

- `transform`: The doc://com.apple.documentation/documentation/CoreFoundation/CGAffineTransform to apply to the contents of this drawing.

## Return Value

Return Value A new drawing with the provided transform applied.

## See Also

### Modifying the drawing

- [transform(using:)](pencilkit/pkdrawing-swift.struct/transform(using:).md)
- [append(_:)](pencilkit/pkdrawing-swift.struct/append(_:).md)
- [appending(_:)](pencilkit/pkdrawing-swift.struct/appending(_:).md)
