<!--
{
  "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/GKSavedGame",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "GameKit"
    ],
    "preciseIdentifier" : "c:objc(cs)GKSavedGame"
  },
  "title" : "GKSavedGame"
}
-->

# GKSavedGame

An object that represents a file containing saved game data.

```
class GKSavedGame
```

## Overview

A `GKSavedGame` object represents the file that contains game data you saved using the `GKLocalPlayer` [`saveGameData(_:withName:completionHandler:)`](/documentation/GameKit/GKLocalPlayer/saveGameData(_:withName:completionHandler:)) method.

You don’t create `GKSavedGame` objects directly. Instead use the [`fetchSavedGames(completionHandler:)`](/documentation/GameKit/GKLocalPlayer/fetchSavedGames(completionHandler:)) method to get the games you saved. Then get the filename, its modification date, and the name of the device the player used to save the game from the returned objects.

Use the [`loadData(completionHandler:)`](/documentation/GameKit/GKSavedGame/loadData(completionHandler:)) method to get the actual game data you saved in the file. To delete saved games, use the [`deleteSavedGames(withName:completionHandler:)`](/documentation/GameKit/GKLocalPlayer/deleteSavedGames(withName:completionHandler:)) method.

## Topics

### Loading Saved Game Data

[`-  loadDataWithCompletionHandler:`](/documentation/GameKit/GKSavedGame/loadData(completionHandler:))

Loads the game data from the file.

### Retrieving Information About a Saved Game File

[`name`](/documentation/GameKit/GKSavedGame/name)

The name of the saved game.

[`modificationDate`](/documentation/GameKit/GKSavedGame/modificationDate)

The date when you saved the game data or modified it.

[`deviceName`](/documentation/GameKit/GKSavedGame/deviceName)

The name of the device that the player uses to save the game.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSCopying`](/documentation/Foundation/NSCopying)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)