---
title: rotation
framework: spatial
role: symbol
role_heading: Instance Property
path: spatial/transform3dprotocol/rotation
---

# rotation

The transform’s rotation. This is nil if the transform isn’t scale-rotate-translate.

## Declaration

```swift
var rotation: Self.Rotation? { get }
```
