Initializer

init(size:)

Initializes a new scene object.

Declaration

init(size: CGSize)

Parameters

size

The size of the scene in points.

Return Value

A newly initialized scene object.

Discussion

This is the class’s designated initializer method.

See Also

Creating a Scene Programmatically

var size: CGSize

The dimensions of the scene, in points.