There are (few) online examples of people using MultipeerConnectivity to send String data types between devices, such as
There are online examples / tutorials about how to get data from URLRequests, with the Data type in the completion handler.
How do I convert any data type into a Swift “Data” type / class? And can I then append this with:
mcSession.send(data: Data, toPeers: [MCPeerID], with: MCSessionSendDataMode)
An example would be to send a PHAssetCollection object between Apple devices, using PhotoKit (import photos) framework. It would seem I need to change the data type from class PHAssetCollection to Data. But I don’t know where to start…