We attempted to migrate to a SwiftUI App for our application's main entry point, and we wanted to continue to leverage the SDK's automatic handling of UIApplicationDelegate events. SwiftUI supports UIKit app delegates through the UIApplicationDelegateAdaptor, so we used this hoping to preserve existing functionality from the MParticle SDK.
Unfortunately, doing so causes the application to crash after logging the following message:
Could not cast value of type 'MPAppDelegateProxy' (0x10d00ac38) to 'SwiftUI.AppDelegate' (0x113e93708)
Is there a way the MPAppDelegateProxy could be updated to support the SwiftUI UIApplicationDelegateAdaptor?
We attempted to migrate to a SwiftUI
Appfor our application's main entry point, and we wanted to continue to leverage the SDK's automatic handling ofUIApplicationDelegateevents. SwiftUI supports UIKit app delegates through theUIApplicationDelegateAdaptor, so we used this hoping to preserve existing functionality from the MParticle SDK.Unfortunately, doing so causes the application to crash after logging the following message:
Is there a way the
MPAppDelegateProxycould be updated to support the SwiftUIUIApplicationDelegateAdaptor?