convert(_:to:)
Converts a rectangle from the coordinate space of the current object to the specified coordinate space.
Declaration
func convert(_ rect: CGRect, to coordinateSpace: any UICoordinateSpace) -> CGRectParameters
- rect:
A rectangle specified in the coordinate system of the current object.
- coordinateSpace:
The coordinate space into which
rectis to be converted.
Return Value
A rectangle specified in the target coordinate space.