<!--
{
  "availability" : [
    "macOS: 26.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CompositorServices",
  "identifier" : "/documentation/CompositorServices/LayerRenderer/Drawable/View/transform",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Compositor Services",
      "CompositorServices"
    ],
    "preciseIdentifier" : "c:@F@cp_view_get_transform"
  },
  "title" : "transform"
}
-->

# transform

The transformation matrix that converts between the device’s coordinate space
to the position of the view in that space.

```
var transform: simd_float4x4 { get }
```

## Discussion

When you generate a frame, you specify a pose matrix that indicates the device’s
position and orientation in the world coordinate space.
When the device is a head-mounted display, the view for each eye has an additional
matrix to specify the position of that eye relative to the device’s pose.
Multiply the device’s pose matrix by the returned matrix to obtain the view’s
location in the world coordinate space.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)