With the Group Activities framework, you can provide your app’s content in SharePlay experiences …
synchronize your app’s behavior with other participating devices.
The Group Activities framework uses end-to-end encryption on all session data that the GroupSession object synchronizes between devices.
the entitlements 설정


GroupActivity 프로토콜을 준수하는 구조체 생성struct SharePlay: GroupActivity {
var metadata: GroupActivityMetadata {
var metadata = GroupActivityMetadata()
metadata.title = "SharePlay Title" // 제목
metadata.subtitle = "SharePlay SubTitle" //부제
metadata.type = .generic //GroupActivity의 유형
metadata.previewImage = UIImage(systemName: "person")?.cgImage //이미지
return metadata
}
}