<!--
{
  "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/UISceneConfiguration/delegateClass",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISceneConfiguration(py)delegateClass"
  },
  "title" : "delegateClass"
}
-->

# delegateClass

The class of the custom delegate object that you want UIKit to create.

```
var delegateClass: AnyClass? { get set }
```

## Discussion

If you specified [`UIWindowScene`](/documentation/UIKit/UIWindowScene) in the [`sceneClass`](/documentation/UIKit/UISceneConfiguration/sceneClass) property, your delegate class must conform to the [`UIWindowSceneDelegate`](/documentation/UIKit/UIWindowSceneDelegate) protocol. Otherwise, you must specify a class that conforms to the [`UISceneDelegate`](/documentation/UIKit/UISceneDelegate) protocol.

UIKit sets this property’s initial value using the <doc://com.apple.documentation/documentation/BundleResources/Information-Property-List/UIApplicationSceneManifest/UISceneConfigurations/UIWindowSceneSessionRoleApplication/UISceneDelegateClassName> key from the appropriate scene 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)