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