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