---
title: displayName
framework: multipeerconnectivity
role: symbol
role_heading: Instance Property
path: multipeerconnectivity/mcpeerid/displayname
---

# displayName

The display name for this peer.

## Declaration

```swift
var displayName: String { get }
```

## Discussion

Discussion For the local peer, you set this property when the object is initialized. It cannot be changed. For other peer objects provided to you by the framework, this property is provided by the peer and cannot be changed.

## See Also

### Peer Methods

- [init(displayName:)](multipeerconnectivity/mcpeerid/init(displayname:).md)
