---
title: "assetResources(for:)"
framework: photos
role: symbol
role_heading: Type Method
path: "photos/phassetresource/assetresources(for:)-27o4l"
---

# assetResources(for:)

Returns the list of data resources associated with an asset.

## Declaration

```swift
class func assetResources(for asset: PHAsset) -> [PHAssetResource]
```

## Parameters

- `asset`: A photo or video asset in the Photos library.

## Return Value

Return Value The asset’s resources.

## Discussion

Discussion Asset resource objects describe the data files that an asset represents. An asset can contain multiple resources—for example, an edited photo asset contains resources for both the original and edited images, as well as for the PHAdjustmentData object describing the edit. To work with one of these files, fetch the underlying data using the PHAssetResourceManager class.

## See Also

### Retrieving an Asset’s Data Resources

- [assetResources(for:)](photos/phassetresource/assetresources(for:)-2fedw.md)
