---
title: "convert(_:to:)"
framework: spritekit
role: symbol
role_heading: Instance Method
path: "spritekit/skview/convert(_:to:)"
---

# convert(_:to:)

Converts a point from view coordinates to scene coordinates.

## Declaration

```swift
func convert(_ point: CGPoint, to scene: SKScene) -> CGPoint
```

## Parameters

- `point`: A point in view coordinates.
- `scene`: A scene.

## Return Value

Return Value The same point in the scene’s coordinate system.

## Discussion

Discussion This method performs the coordinate conversion as if the scene is presented inside the view.

## See Also

### Converting Between View and Scene Coordinates

- [convert(_:from:)](spritekit/skview/convert(_:from:).md)
