---
title: "convert(_:to:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicoordinatespace/convert(_:to:)-2ub7a"
---

# convert(_:to:)

Converts a point from the coordinate space of the current object to the specified coordinate space.

## Declaration

```swift
func convert(_ point: CGPoint, to coordinateSpace: any UICoordinateSpace) -> CGPoint
```

## Parameters

- `point`: A point specified in the coordinate system of the current object.
- `coordinateSpace`: The coordinate space into which point is to be converted.

## Return Value

Return Value A point specified in the target coordinate space.

## See Also

### Converting between coordinate spaces

- [convert(_:from:)](uikit/uicoordinatespace/convert(_:from:)-3w27q.md)
- [convert(_:to:)](uikit/uicoordinatespace/convert(_:to:)-3imkt.md)
- [convert(_:from:)](uikit/uicoordinatespace/convert(_:from:)-9921a.md)
