Initializer

init(session:connectionOptions:)

Creates a scene object using the specified session and connection information.

Declaration

init(session: UISceneSession, connectionOptions: UIScene.ConnectionOptions)

Parameters

session

A session object containing the configuration details for the scene. The system creates the session object and passes it to this initialization method.

connectionOptions

An object containing additional options for connecting the scene to your app.

Return Value

An initialized scene object.

Discussion

Subclasses call this method to initialize the scene details.

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