Contents

GKAchievementDescription

An object containing the text and artwork used to present an achievement to a player.

Declaration

class GKAchievementDescription

Overview

To present an achievement to the player in your interface, you can download the localized text and artwork for the achievements that you enter in App Store Connect. To get the localized text, use the loadAchievementDescriptions(completionHandler:) class method. GameKit passes an array of GKAchievementDescription objects to the completion handler that contains the text. To get the artwork for an achievement, use the loadImage(completionHandler:) method.

To get standard images your game can use to present achievement progress to the player, use the incompleteAchievementImage() and placeholderCompletedAchievementImage()) class methods.

Alternatively, either add the access point or display the dashboard so that the player can view achievements and navigate to their other Game Center data.

Topics

Retrieving Achievement Descriptions

Reading and Writing Achievement Properties

Working with Achievement Images

Retrieving Group Information

Initializers

Instance Properties

See Also

Achievements