rematch(completionHandler:)
Creates a new turn-based match with the same participants from an existing match.
Declaration
func rematch(completionHandler: (@Sendable (GKTurnBasedMatch?, (any Error)?) -> Void)? = nil)func rematch() async throws -> GKTurnBasedMatchParameters
- completionHandler:
The block that GameKit calls when it completes the request.
The block receives the following parameters:
- match
A new match, or
nilif an error occurs.- error
Describes an error if it occurs, or
nilif the operation completes.