<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIApplicationDelegate/application(_:configurationForConnecting:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UIApplicationDelegate(im)application:configurationForConnectingSceneSession:options:"
  },
  "title" : "application(_:configurationForConnecting:options:)"
}
-->

# application(_:configurationForConnecting:options:)

Retrieves the configuration data for UIKit to use when creating a new scene.

```
optional func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration
```

## Parameters

`application`

The singleton app object.

`connectingSceneSession`

The session object associated with the scene. This object contains the initial configuration data loaded from the app’s `Info.plist` file, if any.

`options`

System-specific options for configuring the scene.

## Return Value

The configuration object containing the information needed to create the scene.

## Discussion

Implement this method if you don’t include scene-configuration data in your app’s `Info.plist` file, or if you want to alter the scene configuration data dynamically. UIKit calls this method shortly before creating a new scene. In your implementation, return a [`UISceneConfiguration`](/documentation/UIKit/UISceneConfiguration) object with the scene details, including the type of scene to create, the delegate object you use to manage the scene, and the storyboard containing the initial view controller to display.

If you don’t implement this method, you must provide scene-configuration data in your app’s `Info.plist` file.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)