let localPlayerScore = request.localPlayerScore ?? 0
The problem is that Swift is expecting the 0 to be of type GKScore.
GKScore
I get the following error:
Cannot convert value of type 'Int' to expected argument type 'GKScore'
let localPlayerScore = request.localPlayerScore.value ?? 0
1.4m articles
1.4m replys
5 comments
57.0k users