---
title: "convert(_:from:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiwindow/convert(_:from:)-1gbm1"
---

# convert(_:from:)

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

## Declaration

```swift
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

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

## See Also

### Converting coordinates

- [convert(_:to:)](uikit/uiwindow/convert(_:to:)-687rw.md)
- [convert(_:to:)](uikit/uiwindow/convert(_:to:)-7k3l0.md)
- [convert(_:from:)](uikit/uiwindow/convert(_:from:)-10p2b.md)
