let localPlayerScore = request.localPlayerScore ?? 0
The problem is that Swift is expecting the 0 to be of type GKScore
.
I get the following error:
Cannot convert value of type 'Int' to expected argument type 'GKScore'
let localPlayerScore = request.localPlayerScore.value ?? 0