Instance Property

role

The role played by the scene's content.

Declaration

@property(nonatomic, readonly) UISceneSessionRole role;

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

scene

The scene associated with the current session.

UISceneSessionRole

Constants indicating the possible roles for a scene.