The point in the view’s frame that corresponds to the scene’s origin.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 3.0+
When a scene is presented and a camera node has not been specified, the
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.
Configuring the Viewport
var camera: SKCameraNode?
The camera node in the scene that determines what part of the scene’s coordinate space is visible in the view.