Description
MultipeerKit is a Swift package that wraps Apple's MultipeerConnectivity framework in a simpler, higher-level API. It lets iOS, macOS and tvOS devices find each other and exchange data over Wi-Fi networks, peer-to-peer Wi-Fi and Bluetooth. The main class, MultipeerTransceiver, handles both sending and receiving, and any type that conforms to Codable can be sent, so you define your own message types as ordinary Swift structs. A sample app in the example folder shows a working setup. On iOS 14 and later, apps must add a local network usage description and a Bonjour services entry to Info.plist, in the form _servicename._tcp (_MKSVC._tcp with the default configuration); without these keys the library will not work. It is added to projects through Package.swift.…
Highlights
- High-level wrapper around MultipeerConnectivity
- Works on iOS, macOS and tvOS
- Data over Wi-Fi, peer-to-peer Wi-Fi and Bluetooth
- Send any Codable type
- Sample app included
Ratings & Reviews
No ratings yet
Be the first to rate MultipeerKit.
People also visit
MultipeerKit FAQ
What platforms does MultipeerKit support?
iOS, macOS and tvOS.
What can I send between devices?
Anything that conforms to Swift's Codable protocol, so you can define your own message types.
Why isn't it working on iOS 14?
You must add NSLocalNetworkUsageDescription and NSBonjourServices to Info.plist. The Bonjour entry should be _servicename._tcp, or _MKSVC._tcp with the default configuration.
How do I add it to my project?
It is a Swift package. Add it as a dependency in your Package.swift file.
What are the best MultipeerKit alternatives?
Popular alternatives to MultipeerKit include StikPair, WebRTC-iOS and Continuity. See all MultipeerKit alternatives





