Type Method


Converts the specified path object to screen coordinates and returns a new path object with the results.


static func convertToScreenCoordinates(_ path: UIBezierPath, in view: UIView) -> UIBezierPath



The path object that you want to convert. The coordinate values used to create this path object should be relative to the coordinate system of the specified view. This parameter must not be nil.


The view whose coordinate system was used to define the path. This parameter must not be nil.

Return Value

A new path object that has the same shape as path but whose points are specified in screen coordinates.


This function adjusts the points of the path you provide to values that the accessibility system can use. You can use it to convert path objects in use by your app’s user interface before handing them to the accessibility system.

See Also


static func convertToScreenCoordinates(CGRect, in: UIView) -> CGRect

Converts the specified rectangle from view coordinates to screen coordinates.