<!--
{
  "availability" : [
    "iOS: 17.0.0 - 26.0.0",
    "iPadOS: 17.0.0 - 26.0.0",
    "macCatalyst: 17.0.0 - 26.0.0",
    "macOS: 14.0.0 - 26.0.0",
    "tvOS: 17.0.0 - 26.0.0",
    "visionOS: 1.0.0 - 26.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKChallengeComposeHandler",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:@T@GKChallengeComposeHandler"
  },
  "title" : "GKChallengeComposeHandler"
}
-->

# GKChallengeComposeHandler

A completion block that provides information about the player who issues a challenge and the players who receive it.

iOS, iPadOS, Mac Catalyst, tvOS, visionOS:

```
typealias GKChallengeComposeHandler = (UIViewController, Bool, [GKPlayer]?) -> Void
```

macOS:

```
typealias GKChallengeComposeHandler = (NSViewController, Bool, [GKPlayer]?) -> Void
```

## Parameters

`composeController`

The view controller for the challenge.

`didIssueChallenge`

A Boolean value that indicates whether the player issues the challenge.

`sentPlayers`

The players that receive the challenge.

---

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)