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 don’t provide scene configuration data for your app, UIKit sets the role to an appropriate value.