---
title: role
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uisceneconfiguration/role
---

# role

The role assigned to the scene configuration.

## Declaration

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

## Discussion

Discussion UIKit populates this property with an appropriate role value based on the contents of your app’s Info.plist file. You also specify this value when you create a new scene-configuration object.

## See Also

### Getting the configuration attributes

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