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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software