MultipeerConnectivity + Codable = ❤️
Repo insidegui/MultipeerKit, read from GitHub 4 min ago. insidegui has not joined Take My Repo.
peerConnected and peerDisconnectedAddresses a crash which would occur when the app's Info.plist was missing required keys on iOS 14. See the readme for more information.
Receiver blocks now receive the Peer the message was sent from. This is a breaking change to the API, but it's very easy to account for in your code.
If you were previously doing something like this:
transceiver.receive(SomeCodableThing.self) { payload in // handle }
All you have to do is ignore the sender parameter in the closure, like so:
transceiver.receive(SomeCodableThing.self) { payload, _ in // handle }
Adds localPeerId property so that the your own peer ID can be accessed through the transceiver.