---
title: "convert(_:to:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiwindow/convert(_:to:)-687rw"
---

# convert(_:to:)

Converts a point from the current window’s coordinate system to the coordinate system of another window.

## Declaration

```swift
func convert(_ point: CGPoint, to window: UIWindow?) -> CGPoint
```

## Parameters

- `point`: A point specifying a location in the logical coordinate system of the current window object.
- `window`: The window defining the destination coordinate system for point. Specify nil to convert the point to the logical coordinate system of the screen, which is measured in points.

## Return Value

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

## See Also

### Converting coordinates

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