Constants indicating the possible roles for a scene.


struct Role



static let windowApplication: UISceneSession.Role

The scene displays interactive windows on the device's main screen.

static let windowExternalDisplay: UISceneSession.Role

The scene displays noninteractive windows on an externally connected screen.

static let carTemplateApplication: UISceneSession.Role

The scene displays interactive content on a CarPlay-enabled vehicle screen.


See Also

Getting the Scene Information

var scene: UIScene?

The scene associated with the current session.

var role: UISceneSession.Role

The role played by the scene's content.

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