Hi, I'm wondering if I should choose between Network Framework or MultipeerConnectivity for my peer-to-peer needs. It'll only be between two devices, and won't be with huge amounts of data (some text and an image).
Since I'm using SwiftUI, I won't be needing to support older iOS versions.
I like the idea of Network Framework, because:
Since I'm using SwiftUI, I won't be needing to support older iOS versions.
I like the idea of Network Framework, because:
It's newer, so it has a much nicer API which doesn't feel like a thin layer over Objective-C.
It lets me define my own transport protocol, so I have more fine-grain control over how I send, receive, and parse my messages. Meanwhile, MultipeerConnectivity seems to use a weird combination of TCP and UDP which is abstracted away from us.