Contents

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) -> CGRect

Parameters

  • rect:

    A rectangle in the specified coordinate space.

  • coordinateSpace:

    The coordinate space in which rect is specified.

Return Value

A rectangle specified in the coordinate space of the current object.

See Also

Converting between coordinate spaces