---
title: "hasActiveChallenges(completionHandler:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gkchallengedefinition/hasactivechallenges(completionhandler:)"
---

# hasActiveChallenges(completionHandler:)

Indicates if this definition has active challenges associated with it.

## Declaration

```swift
func hasActiveChallenges(completionHandler: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

```swift
var hasActiveChallenges: Bool { get async throws }
```
