<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIWindow/convert(_:to:)-687rw",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIWindow(im)convertPoint:toWindow:"
  },
  "title" : "convert(_:to:)"
}
-->

# convert(_:to:)

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

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

The point converted to the coordinate system of `window`.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)