---
title: "convert(_:from:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiview/convert(_:from:)-8neo1"
---

# convert(_:from:)

Converts a point from the coordinate system of a given view to that of the receiver.

## Declaration

```swift
func convert(_ point: CGPoint, from view: UIView?) -> CGPoint
```

## Parameters

- `point`: A point specified in the local coordinate system (bounds) of view.
- `view`: The view with point in its coordinate system. If view is nil, this method instead converts from window base coordinates. Otherwise, both view and the receiver must belong to the same doc://com.apple.uikit/documentation/UIKit/UIWindow object.

## Return Value

Return Value The point converted to the local coordinate system (bounds) of the receiver.

## See Also

### Converting between view coordinate systems

- [convert(_:to:)](uikit/uiview/convert(_:to:)-1xizt.md)
- [convert(_:to:)](uikit/uiview/convert(_:to:)-2kf3d.md)
- [convert(_:from:)](uikit/uiview/convert(_:from:)-7irzk.md)
