loadAchievements(completionHandler:)
Loads the achievements that you previously reported the player making progress toward.
Declaration
class func loadAchievements(completionHandler: (@Sendable ([GKAchievement]?, (any Error)?) -> Void)? = nil)class func loadAchievements() async throws -> [GKAchievement]Parameters
- completionHandler:
A block that GameKit calls when this method loads the achievements.
The block receives the following parameters:
achievementsThe achievements that you previously reported progress for the local player.
errorDescribes an error if it occurs, or
nilif the operation completes.