The dimensions of the scene, in points.
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 3.0+
When a scene is first initialized, its size property is configured by the designated initializer. The size of the scene specifies the size of the visible portion of the scene in points. This is only used to specify the visible portion of the scene. Nodes in the tree can be positioned outside of this area; those nodes are still processed by the scene, but are ignored by the renderer.
If you set the
size property to a new value, the scene’s
did method is called. This property can also change if the
scale property is set to
SKScene and the presenting view is resized. After the scene’s size changes, future updates are rendered immediately at the new size.