You can rotate a view by creating a Transform
and setting it to the view’s property:
Rotating a Transform will adjust itself between
-M_PI
andM_PI
, if you need to accumulate or set rotations higher than+/- PI
you can use the.rotation
property.