---
title: "init(leaderboardIdentifier:)"
framework: gamekit
role: symbol
role_heading: Initializer
path: "gamekit/gkscore/init(leaderboardidentifier:)"
---

# init(leaderboardIdentifier:)

Returns an initialized score object using the local player and the current date.

## Declaration

```swift
init(leaderboardIdentifier identifier: String)
```

## Parameters

- `identifier`: Identifies the leaderboard that the score is being sent to.

## Return Value

Return Value An initialized score object, or nil if an error occurred.

## Discussion

Discussion Your game explicitly allocates and initializes a score object using the current player and date when it needs to report a new score to Game Center.

## See Also

### Deprecated Methods and Properties

- [category](gamekit/gkscore/category.md)
- [context](gamekit/gkscore/context.md)
- [date](gamekit/gkscore/date.md)
- [formattedValue](gamekit/gkscore/formattedvalue.md)
- [leaderboardIdentifier](gamekit/gkscore/leaderboardidentifier.md)
- [player](gamekit/gkscore/player.md)
- [rank](gamekit/gkscore/rank.md)
- [value](gamekit/gkscore/value.md)
- [shouldSetDefaultLeaderboard](gamekit/gkscore/shouldsetdefaultleaderboard.md)
- [init(leaderboardIdentifier:player:)](gamekit/gkscore/init(leaderboardidentifier:player:).md)
- [init(category:)](gamekit/gkscore/init(category:).md)
- [init(leaderboardIdentifier:forPlayer:)](gamekit/gkscore/init(leaderboardidentifier:forplayer:).md)
- [issueChallenge(toPlayers:message:)](gamekit/gkscore/issuechallenge(toplayers:message:).md)
- [playerID](gamekit/gkscore/playerid.md)
- [report(completionHandler:)](gamekit/gkscore/report(completionhandler:).md)
