---
title: anchorPoint
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skscene/anchorpoint
---

# anchorPoint

The point in the view’s frame that corresponds to the scene’s origin.

## Declaration

```swift
var anchorPoint: CGPoint { get set }
```

## Mentioned in

Positioning a Scene’s Origin Within its View Drawing SpriteKit Content in a View Getting Started with a Camera

## Discussion

Discussion When a scene is presented and a camera node has not been specified, the size and anchorPoint properties determine which part of the scene’s coordinate space is visible in the view. You specify the value using the unit coordinate space. The default value is (0,0), which corresponds to the lower-left corner of the view’s frame rectangle.

## See Also

### Configuring the Viewport

- [Positioning a Scene’s Origin Within its View](spritekit/positioning-a-scene-s-origin-within-its-view.md)
- [camera](spritekit/skscene/camera.md)
