Contents

delegateClass

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

Declaration

var delegateClass: AnyClass? { get set }

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