delegate
The delegate for the event handler.
Declaration
weak var delegate: (any GKTurnBasedEventHandlerDelegate & NSObjectProtocol)? { get set }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.