Structure
Peer
public struct Peer: Hashable, Identifiable
Represents a remote peer.
Relationships
Conforms To
Hashable
Identifiable
Initializers
init(peer:discoveryInfo:)
init(peer: MCPeerID, discoveryInfo: [String: String]?) throws
Properties
underlyingPeer
let underlyingPeer: MCPeerID
id
let id: String
The unique identifier for the peer.
name
let name: String
The peer's display name.
discoveryInfo
let discoveryInfo: [String: String]?
Discovery info provided by the peer.
isConnected
var isConnected: Bool
true
if we are currently connected to this peer.