<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKChallengeDefinition/loadChallengeDefinitions(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKChallengeDefinition(cm)loadChallengeDefinitionsWithCompletionHandler:"
  },
  "title" : "loadChallengeDefinitions(completionHandler:)"
}
-->

# loadChallengeDefinitions(completionHandler:)

Loads all the challenge definitions for the current game, returns an empty array if none exist.

```
class func loadChallengeDefinitions(completionHandler: @escaping @Sendable ([GKChallengeDefinition]?, (any Error)?) -> Void)
```

```
class var all: [GKChallengeDefinition] { get async throws }
```

## Discussion> Important: Archived challenge definitions are excluded.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)