<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "GameKit",
  "identifier" : "/documentation/GameKit/GKSavedGameListener/player(_:didModifySavedGame:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(pl)GKSavedGameListener(im)player:didModifySavedGame:"
  },
  "title" : "player(_:didModifySavedGame:)"
}
-->

# player(_:didModifySavedGame:)

Handles when data changes in a saved game file.

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

## Parameters

`player`

The player who saves the game data.

`savedGame`

The game the player saves.

## Discussion

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)