Creates an action that rotates the node by a relative value.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
The amount to rotate the node, in radians.
The duration of the animation.
A new action object.
When the action executes, the node’s
z property animates to the new angle.
This action is reversible; the reverse is created as if the following code is executed: