Contents

init(identifier:)

Initializes an achievement for the local player.

Declaration

init(identifier: String)

Parameters

  • identifier:

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

Mentioned in

Return Value

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

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