Instance Property

role

The role played by the scene's content.

Declaration

var role: UISceneSession.Role { get }

Discussion

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.