01
Access the App Delegate in Swift (UIKit and SwiftUI)
SwiftUIKitAppDelegateSwiftUI
Access an existing app delegate with UIApplication.shared.delegate as? AppDelegate, or with the @UIApplicationDelegateAdaptor property in SwiftUI.
READ_ARTICLE
// 2 articles available
Access an existing app delegate with UIApplication.shared.delegate as? AppDelegate, or with the @UIApplicationDelegateAdaptor property in SwiftUI.
Add an AppDelegate to a SwiftUI app with @UIApplicationDelegateAdaptor to handle push tokens, launch options, and lifecycle callbacks SwiftUI lacks.