---
title: "player(_:didModifySavedGame:)"
framework: gamekit
role: symbol
role_heading: Instance Method
path: "gamekit/gksavedgamelistener/player(_:didmodifysavedgame:)"
---

# player(_:didModifySavedGame:)

Handles when data changes in a saved game file.

## Declaration

```swift
optional func player(_ player: GKPlayer, didModifySavedGame savedGame: GKSavedGame)
```

## Parameters

- `player`: The player who saves the game data.
- `savedGame`: The game the player saves.

## Discussion

Discussion GameKit invokes this method when you save game data on a device that isn’t the user’s current device.
