The orientation, as a vector of Euler angles in radians, of the transform relative to its parent coordinate space.
- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- Model I/O
The three components of this vector describe counterclockwise rotation around the corresponding axes. In a coordinate system where the negative z-axis direction is considered “forward”, these components are pitch (rotation about the x-axis), yaw (rotation about the y-axis), and roll (rotation about the z-axis).
Together with the
shear properties, this property defines the local coordinate space for any object affected by the transform, relative to a parent coordinate space. Use the
matrix property to work with the complete transform.
If the transform includes time-based information, reading this property returns the rotation as of the earliest time sample (as reported by the
minimum property). Writing to this property erases any time-sampled data for the rotation factor. To work with time-sampled data from an animated transform, use the