I'm trying to write a SwiftUI iOS/macOS app that allows users to collaborate, but I keep running into limitations. The latest is that I can't figure out what the UICloudSharingContainer equivalent is on macOS. It doesn't seem like there’s a SwiftUI version of this, so I have to write a lot of platform-specific code to handle it, but it's not clear what the AppKit equivalent is.
If UICloudSharingContainer means UICloudSharingController here, its counterpart on macOS is NSSharingServicePicker. If you are making a SwiftUI app, consider using ShareLink to create a new share (CKShare), and using UIActivityViewController / NSSharingServicePicker to manage a share.
The following sample should give you a starting point:
Best,
——
Ziqiao Chen
Worldwide Developer Relations.