---
title: role
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiscenesession/role-swift.property
---

# role

The role played by the scene’s content.

## Declaration

```swift
var role: UISceneSession.Role { get }
```

## Discussion

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.

## See Also

### Getting the scene information

- [scene](uikit/uiscenesession/scene.md)
- [UISceneSession.Role](uikit/uiscenesession/role-swift.struct.md)
