This is a clone of Apple's sample app accessible here.
It differs from the original in several ways, mainly:
- comments have been added throughout the app to better understand the code.
- changes were made to make
UICloudSharingControllerwork in iOS16 (so far, without success) SWCollaborationViewwas added as a an alternative toUICloudSharingController. Unfortunately,SWCollaborationViewdoes not appear to work in SwiftUI (or at least, I'm not sure how to make it work).
To see how SWCollaborationView is implemented at the moment, see files CollaborationView and FullImageView.
The comments and code are quite messy at the moment - this clone only serves learning purposes, and the repo is public so others may see the issues with implementing UICloudSharingController and SWCollaborationView. Once these issues are resolved, the repo will be removed.
Before running the project, change the bundle identifier and other settings as required by the original sample app.