---
title: transform
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/graphicscontext/transform
---

# transform

The current transform matrix, defining user space coordinates.

## Declaration

```swift
var transform: CGAffineTransform { get set }
```

## Discussion

Discussion Modify this matrix to transform content that you subsequently draw into the context. Changes that you make don’t affect existing content.

## See Also

### Applying transforms

- [scaleBy(x:y:)](swiftui/graphicscontext/scaleby(x:y:).md)
- [rotate(by:)](swiftui/graphicscontext/rotate(by:).md)
- [translateBy(x:y:)](swiftui/graphicscontext/translateby(x:y:).md)
- [concatenate(_:)](swiftui/graphicscontext/concatenate(_:).md)
