---
title: "init(identifier:)"
framework: gamekit
role: symbol
role_heading: Initializer
path: "gamekit/gkachievement/init(identifier:)"
---

# init(identifier:)

Initializes an achievement for the local player.

## Declaration

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

## Parameters

- `identifier`: The identifier for the achievement that you enter in App Store Connect.

## Mentioned in

Rewarding players with achievements

## Return Value

Return Value An achievement for a player, or nil if an error occurs.

## Discussion

Discussion Before creating an achievement, use the loadAchievements(completionHandler:) method to load the achievements that are in progress. If the achievement you want to report progress on isn’t in the array that GameKit passes to the handler, use this method to initialize the achievement.

## See Also

### Loading and Initializing Achievements

- [loadAchievements(completionHandler:)](gamekit/gkachievement/loadachievements(completionhandler:).md)
- [init(identifier:player:)](gamekit/gkachievement/init(identifier:player:).md)
