<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.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",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetResource"
  },
  "title" : "PHAssetResource"
}
-->

# PHAssetResource

An underlying data resource associated with a photo, video, or Live Photo asset in the Photos library.

```
class PHAssetResource
```

## Overview

Each [`PHAsset`](/documentation/Photos/PHAsset) object references one or more resources. Use these objects to work with those resources directly, like when backing up or restoring assets.

- A photo asset can contain both JPEG and RAW files representing the same photo.
- A Live Photo asset contains both still photo and video resources.
- An edited asset contains resources representing asset content before and after the edit, as well as a resource corresponding to the [`PHAdjustmentData`](/documentation/Photos/PHAdjustmentData) object that describes the edit.

To work with the data contained in an asset resource, fetch it using the [`PHAssetResourceManager`](/documentation/Photos/PHAssetResourceManager) class.

## Topics

### Retrieving an Asset’s Data Resources

[`assetResources(for:)`](/documentation/Photos/PHAssetResource/assetResources(for:)-27o4l)

Returns the list of data resources associated with an asset.

[`assetResources(for:)`](/documentation/Photos/PHAssetResource/assetResources(for:)-2fedw)

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

### Inspecting an Asset Resource

[`type`](/documentation/Photos/PHAssetResource/type)

The relationship of an asset resource to its owning asset.

[`PHAssetResourceType`](/documentation/Photos/PHAssetResourceType)

Describes the relationship of an asset resource to its owning asset.

[`contentType`](/documentation/Photos/PHAssetResource/contentType)

The content type of the data associated with this asset resource (the data can be retrieved via `PHAssetResourceManager`)

[`assetLocalIdentifier`](/documentation/Photos/PHAssetResource/assetLocalIdentifier)

The unique identifier the system associates for a local asset object.

[`uniformTypeIdentifier`](/documentation/Photos/PHAssetResource/uniformTypeIdentifier)

The uniform type identifier for the asset resource’s image or video data.

[`originalFilename`](/documentation/Photos/PHAssetResource/originalFilename)

The original filename of the asset resource from when it was created or imported.

[`pixelHeight`](/documentation/Photos/PHAssetResource/pixelHeight)

The height of the resource, in pixels.

[`pixelWidth`](/documentation/Photos/PHAssetResource/pixelWidth)

The width of the resource, in pixels.



---

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)