---
title: "CATransform3DGetAffineTransform(_:)"
framework: Core Animation
role: symbol
role_heading: Function
platforms: [iOS 2.0+, iPadOS 2.0+, Mac Catalyst 13.1+, macOS 10.5+, tvOS 9.0+, visionOS 1.0+]
path: "quartzcore/catransform3dgetaffinetransform(_:)"
---

# CATransform3DGetAffineTransform(_:)

Returns the affine transform represented by t.

## Declaration

```swift
func CATransform3DGetAffineTransform(_ t: CATransform3D) -> CGAffineTransform
```

## Discussion

Discussion If t can not be exactly represented as an affine transform, the return value is undefined.

## See Also

### Converting to and from Core Graphics Affine Transforms

- [CATransform3DMakeAffineTransform(_:)](quartzcore/catransform3dmakeaffinetransform(_:).md)
