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

# alias

A string the player chooses to identify themself to other players.

## Declaration

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

## Discussion

Discussion GameKit uses the player’s alias when a player isn’t a friend of the local player. Typically, you never display the alias string directly in your user interface. Instead use the displayName property.

## See Also

### Accessing player details

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