Skip to content

Instantly share code, notes, and snippets.

@whoisdylan
Created April 16, 2015 08:27
Show Gist options
  • Save whoisdylan/9a904f43b59ab5829c92 to your computer and use it in GitHub Desktop.
Save whoisdylan/9a904f43b59ab5829c92 to your computer and use it in GitHub Desktop.
class Entity {
let dragger: Draggable?
let sender: Sendable<T>?
func sendData(toPeer peer: MCPeerID) {
let dataToSend = sender.data.toArchive
multipeerconnectivity.send(dataToSend, peer)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment