convert(_:to:)
Converts a point from the receiver’s coordinate system to that of the specified view.
Declaration
func convert(_ point: CGPoint, to view: UIView?) -> CGPointParameters
- point:
A point specified in the local coordinate system (bounds) of the receiver.
- view:
The view into whose coordinate system
pointis to be converted. Ifviewisnil, this method instead converts to window base coordinates. Otherwise, bothviewand the receiver must belong to the same Uiwindow object.
Return Value
The point converted to the coordinate system of view.