MultipeerKit Documentation Beta

Structure Peer

public struct Peer: Hashable, Identifiable

Represents a remote peer.

%3 Peer Peer Hashable Hashable Peer->Hashable Identifiable Identifiable Peer->Identifiable

Conforms To

Hashable
Identifiable

Properties

id

let id: String

The unique identifier for the peer.

name

let name: String

The peer's display name.

discovery​Info

let discoveryInfo: [String: String]?

Discovery info provided by the peer.

is​Connected

var isConnected: Bool

true if we are currently connected to this peer.