---
title: "init(name:sessionRole:)"
framework: uikit
role: symbol
role_heading: Initializer
path: "uikit/uisceneconfiguration/init(name:sessionrole:)"
---

# init(name:sessionRole:)

Creates a scene-configuration object with the specified role and app-specific name.

## Declaration

```swift
init(name: String?, sessionRole: UISceneSession.Role)
```

## Parameters

- `name`: The app-specific name you want to assign to the scene. For scenes you specify in your Info.plist file, this value corresponds to the string assigned to the doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/UIApplicationSceneManifest/UISceneConfigurations/UIWindowSceneSessionRoleApplication/UISceneConfigurationName key.
- `sessionRole`: The role of the scene. For a list of possible roles, see doc://com.apple.uikit/documentation/UIKit/UISceneSession/Role-swift.struct.

## Return Value

Return Value A new scene-configuration object.

## Discussion

Discussion After creating a scene-configuration object, supply values for the sceneClass, delegateClass, and storyboard properties.
