Hi,
I want to implement the
method in my SwiftUI lifecycle app. I already used
and added the AppDelegate:
Without any success. No "CK Share accepted" in the log.
I also tried it with the Scene Delegate and the
again no luck.
I've tried literally everything. The link is working because if I open the share on a sample that uses the UIKit Lifecycle it works correctly.
Did I miss anything, or is this a bug with the SwiftUI Lifecycle and UIApplicationDelegateAdaptor?
Take care,
David
I want to implement the
Code Block func windowScene(_ windowScene: UIWindowScene, userDidAcceptCloudKitShareWith cloudKitShareMetadata: CKShare.Metadata)
method in my SwiftUI lifecycle app. I already used
Code Block @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
and added the AppDelegate:
Code Block class AppDelegate: NSObject, UIApplicationDelegate { func application(_ application: UIApplication, userDidAcceptCloudKitShareWith cloudKitShareMetadata: CKShare.Metadata) { print("CK Share accepted") } }
Without any success. No "CK Share accepted" in the log.
I also tried it with the Scene Delegate and the
Code Block swift func windowScene(_ windowScene: UIWindowScene, userDidAcceptCloudKitShareWith cloudKitShareMetadata: CKShare.Metadata)
again no luck.
I've tried literally everything. The link is working because if I open the share on a sample that uses the UIKit Lifecycle it works correctly.
Did I miss anything, or is this a bug with the SwiftUI Lifecycle and UIApplicationDelegateAdaptor?
Take care,
David