Returns an affine transform that rotates between two interface orientations around the center.
This method models UI rotation (opposite to physical device rotation).
For example, rotating from .landscapeRight to .portrait results in a counter-clockwise transform.
- Parameters:
- fromOrientation: The starting interface orientation.
- toOrientation: The target interface orientation.
- Returns: A CGAffineTransform representing the rotation.
Returns an affine transform that rotates between two interface orientations around the center.
This method models UI rotation (opposite to physical device rotation).
For example, rotating from
.landscapeRightto.portraitresults in a counter-clockwise transform.- Parameters:
- fromOrientation: The starting interface orientation.
- toOrientation: The target interface orientation.
- Returns: A
CGAffineTransformrepresenting the rotation.