<!--
{
  "availability" : [
    "iOS: 9.1.0 -",
    "iPadOS: 9.1.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHAssetResource/assetResources(for:)-2fedw",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetResource(cm)assetResourcesForLivePhoto:"
  },
  "title" : "assetResources(for:)"
}
-->

# assetResources(for:)

Returns the list of data resources associated with a Live Photo object.

```
class func assetResources(for livePhoto: PHLivePhoto) -> [PHAssetResource]
```

## Parameters

`livePhoto`

A Live Photo object.

## Return Value

The underlying resources that constitute the Live Photo.

## Discussion

A Live Photo is a picture, taken with a compatible device, that includes movement and sound from the moments just before and after its capture. A [`PHLivePhoto`](/documentation/Photos/PHLivePhoto) object represents the displayable combination of image, motion, and sound data. You can obtain such objects from the Photos library using the [`PHImageManager`](/documentation/Photos/PHImageManager) class or construct them from asset resources exported from a Photos library using the [`PHLivePhoto`](/documentation/Photos/PHLivePhoto) class.

Use this method to export the underlying resources that constitute a Live Photo. For example, a social networking app can retrieve those data files and upload them to a server. Then, on another user’s device, the app downloads those data files and uses the [`PHLivePhoto`](/documentation/Photos/PHLivePhoto) class to re-create a Live Photo object for display using the [`PHLivePhotoView`](/documentation/PhotosUI/PHLivePhotoView) 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)