<!--
{
  "availability" : [
    "iOS: 7.0.0 - 13.0.0",
    "iPadOS: 7.0.0 - 13.0.0",
    "macCatalyst: 13.1.0 - 13.1.0",
    "macOS: 10.9.0 - 10.15.0",
    "tvOS: 9.0.0 - 13.0.0",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "GameController",
  "identifier" : "/documentation/GameController/GCGamepadSnapShotDataV100FromNSData(_:_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Game Controller"
    ],
    "preciseIdentifier" : "c:@F@GCGamepadSnapShotDataV100FromNSData"
  },
  "title" : "GCGamepadSnapShotDataV100FromNSData(_:_:)"
}
-->

# GCGamepadSnapShotDataV100FromNSData(_:_:)

Copies the recorded data from a gamepad snapshot into a readable structure.

```
func GCGamepadSnapShotDataV100FromNSData(_ snapshotData: UnsafeMutablePointer<GCGamepadSnapShotDataV100>?, _ data: Data?) -> Bool
```

## Parameters

`snapshotData`

A pointer to memory to fill with the shapshot data.

`data`

An <doc://com.apple.documentation/documentation/Foundation/NSData> object that contains recorded data. Often, this is obtained by calling the [`snapshotData`](/documentation/GameController/GCGamepadSnapshot/snapshotData) method of a [`GCGamepadSnapshot`](/documentation/GameController/GCGamepadSnapshot) object.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the data could be copied, <doc://com.apple.documentation/documentation/Swift/false> if `snapshotData` is `nil`, `data` is `nil`, or if the contents of `data` do not contain a compatible snapshot.

---

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)