---
title: displayName
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkplayer/displayname
---

# displayName

A string to display for the player.

## Declaration

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

## Mentioned in

Starting turn-based matches and passing turns between players

## Discussion

Discussion The display name for a player depends on whether the player is a friend of the local player on the device. If the player is a friend of the local player, the display name is the actual name of the player. If the player isn’t a friend, the display name is the player’s alias.

## See Also

### Accessing player details

- [alias](gamekit/gkplayer/alias.md)
- [isInvitable](gamekit/gkplayer/isinvitable.md)
- [isFriend](gamekit/gkplayer/isfriend.md)
