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

# delegateClass

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

## Declaration

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

## Discussion

Discussion If you specified UIWindowScene in the sceneClass property, your delegate class must conform to the UIWindowSceneDelegate protocol. Otherwise, you must specify a class that conforms to the UISceneDelegate protocol. UIKit sets this property’s initial value using the UISceneDelegateClassName key from the appropriate scene in your app’s Info.plist file.

## See Also

### Specifying the scene creation details

- [sceneClass](uikit/uisceneconfiguration/sceneclass.md)
- [storyboard](uikit/uisceneconfiguration/storyboard.md)
