<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIView/convert(_:to:)-1xizt",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIView(im)convertPoint:toView:"
  },
  "title" : "convert(_:to:)"
}
-->

# convert(_:to:)

Converts a point from the receiver’s coordinate system to that of the specified view.

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

## Parameters

`point`

A point specified in the local coordinate system (bounds) of the receiver.

`view`

The view into whose coordinate system `point` is to be converted. If `view` is `nil`, this method instead converts to window base coordinates. Otherwise, both `view` and the receiver must belong to the same [`UIWindow`](/documentation/UIKit/UIWindow) object.

## Return Value

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

## 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)