Let’s use a fundamental todo app for example – sharing a todo checklist. I’ve a share button (sq. with up arrow) that when the person faucets I would like the preliminary share sheet to look. If I’ve to create and save the CKShare to be able to cross it (albeit wrapped) to UIActivityViewController or ShareLink. The problem is that saving the CKShare incurs a community interplay and so there’s a 1 – 2 second delay from the time the person faucets the share button to the time the share sheet is displayed.
I notice that within the Apple Reminders app, tapping the share button instantly brings up the share sheet after which if you choose say Messages, it exhibits the share object contained in the physique with an exercise spinner inside that object for a second earlier than its able to ship. In the event you cancel and do not ship, the share button stays and you’ll merely undergo that very same course of once more. That’s, it does not seem to go away any zombie shares behind.
With the deprecation of UICloudSharingController .init(preparationHandler:) you prompt utilizing ShareLink or UIActivityViewController. I can not determine obtain the identical factor as Apple Reminders the place there is no such thing as a delay between tapping the share button and presenting the share sheet as a result of having to create and save the CKShare object first (and within the case of utilizing ShareLink, not abandoning a CKShare zombie if the person doesn’t really ship the invite).
Would enormously admire some steerage on this

