Contents

convert(_:from:)

Converts a point from the coordinate system of a given window to the coordinate system of the current window.

Declaration

func convert(_ point: CGPoint, from window: UIWindow?) -> CGPoint

Parameters

  • point:

    A point specifying a location in the coordinate system of window.

  • window:

    The source window containing the specified point. Specify nil to convert the point from the logical coordinate system of the screen, which is measured in points.

Return Value

The point converted to the coordinate system of the current window.

See Also

Converting coordinates