SWCollaborationCoordinator
SWCollaborationCoordinator
SWCollaborationCoordinator Class of SharedWithYouCore An object that contains the shared collaboration coordinator.
class SWCollaborationCoordinatorOverview
SWCollaborationCoordinator is a singleton, meaning there’s a global shared instance. The singleton invokes its actionHandler delegate to coordinate new collaborations and updates to existing collaborations.
Register the delegate soon after launch and handle actions immediately to avoid timeouts. Here’s how to set up the collaboration coordinator after your app finishes launching:
- Access the singleton coordinator instance through the shared property.
- Then, in the app delegate’s //com.apple.documentation/documentation/UIKit/UIApplicationDelegate/application(:didFinishLaunchingWithOptions:)) method, set the
actionHandlerproperty to an object that conforms to the `doc://com.apple.sharedwithyou/documentation/SharedWithYouCore/SWCollaborationActionHandler` protocol.
Related Sessions from WWDC22: Session 10093: Integrate your custom collaboration app with Messages