orientationTransform(for:)
The affine transform for changing the image to the given orientation.
Declaration
func orientationTransform(for orientation: CGImagePropertyOrientation) -> CGAffineTransformDiscussion
Returns a CGAffineTransform for the CGImagePropertyOrientation value to apply to the image.