A flag that opts you in to a peer-to-peer multiuser AR experience.
- iOS 13.0+
The default value of this property is
NO. When you enable collaboration, ARKit invokes
session: periodically, providing you with collaboration data to share with peers. Collaboration data contains information about the real-world surfaces ARKit detects, your position in relation to them, and any anchors you may have created.
Multiple users sharing collaboration data with each other results in an AR experience in which the users interact by sharing and manipulating anchors. By including information that describes a user's unique view of the world, collaboration data enhances ARKit's understanding of the layout of the physical environment much more quickly than is possible with only one user.
For more information, see Creating a Collaborative Session.
Sharing Collaboration Data Over the Network
You are responsible for sending collaboration data over the network, including choosing the network framework and implementing the code. See Creating a Multiuser AR Experience for an example app that shares a world map among users via MultipeerConnectivity. Although Creating a Multiuser AR Experience demonstrates sharing world data among peer users, it does so using a host-guest model. The primary advantage of collaboration data is that it enables you to share world data peer-to-peer.