Instance Method

convert(_:to:)

Converts a point from the coordinate space of the current object to the specified coordinate space.

Required.

Declaration

func convert(_ point: CGPoint, to coordinateSpace: UICoordinateSpace) -> CGPoint

Parameters

point

A point specified in the coordinate system of the current object.

coordinateSpace

The coordinate space into which point is to be converted.

Return Value

A point specified in the target coordinate space.

See Also

Converting Between Coordinate Spaces

func convert(CGPoint, from: UICoordinateSpace) -> CGPoint

Converts a point from the specified coordinate space to the coordinate space of the current object.

Required.

func convert(CGRect, to: UICoordinateSpace) -> CGRect

Converts a rectangle from the coordinate space of the current object to the specified coordinate space.

Required.

func convert(CGRect, from: UICoordinateSpace) -> CGRect

Converts a rectangle from the specified coordinate space to the coordinate space of the current object.

Required.