application(_:userDidAcceptCloudKitShareWith:)
Tells the delegate when the user accepts a CloudKit sharing invitation.
Declaration
@MainActor optional func application(_ application: NSApplication, userDidAcceptCloudKitShareWith metadata: CKShareMetadata)Parameters
- application:
The shared app object.
- metadata:
The metadata associated with the invitation. Use the URL of the metadata’s Ckshare object and the Containeridentifier property to schedule a Ckacceptsharesoperation object.
Discussion
Use the provided metadata to begin sharing the specified content with the current user. For more information, see CloudKit.