Instance Property


The role played by the scene's content.


var role: UISceneSession.Role { get }


Use this property to determine how the user interacts with the content of the associated scene. UIKit sets the initial value of this property based on the information in your app's Info.plist file. If you do not provide scene configuration data for your app, UIKit sets the role to an appropriate value.

See Also

Getting the Scene Information

var scene: UIScene?

The scene associated with the current session.

struct UISceneSession.Role

Constants indicating the possible roles for a scene.