Send data between Apple devices (iPhone/iPad/macOS) using Multipeer Connectivity

Today I want to introduce an Apple framework, called Multipeer Connectivity.

“The Multipeer Connectivity framework supports the discovery of services provided by nearby devices and supports communicating with those services through message-based data, streaming data, and resources (such as files). In iOS, the framework uses infrastructure Wi-Fi networks, peer-to-peer Wi-Fi, and Bluetooth personal area networks for the underlying transport. In macOS and tvOS, it uses infrastructure Wi-Fi, peer-to-peer Wi-Fi, and Ethernet.”

Reference here: https://developer.apple.com/documentation/multipeerconnectivity

Read More