---
title: ctm
framework: coregraphics
role: symbol
role_heading: Instance Property
path: coregraphics/cgcontext/ctm
---

# ctm

Returns the current transformation matrix.

## Declaration

```swift
var ctm: CGAffineTransform { get }
```

## See Also

### Working with the Current Transformation Matrix

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