convertToUserSpace(_:)
Returns a rectangle that is transformed from device space coordinate to user space coordinates.
Declaration
func convertToUserSpace(_ rect: CGRect) -> CGRectParameters
- rect:
The rectangle, in device space coordinates, to transform.
Return Value
The rectangle in user space coordinates.
Discussion
In general, affine transforms do not preserve rectangles. As a result, this function returns the smallest rectangle that contains the transformed corner points of the rectangle.