---
title: delegate
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkturnbasedeventhandler/delegate
---

# delegate

The delegate for the event handler.

## Declaration

```swift
weak var delegate: (any GKTurnBasedEventHandlerDelegate & NSObjectProtocol)? { get set }
```

## Discussion

Discussion If your game implements turn-based matches, it should set the delegate immediately after the local player is successfully initialized. You want to set the delegate immediately because your game may have been launched specifically to handle a turn-based match event.
