<!--
{
  "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/assetLocalIdentifier",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHAssetResource(py)assetLocalIdentifier"
  },
  "title" : "assetLocalIdentifier"
}
-->

# assetLocalIdentifier

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

```
var assetLocalIdentifier: String { get }
```

## Discussion

This property’s value corresponds to the [`localIdentifier`](/documentation/Photos/PHObject/localIdentifier) property of the [`PHAsset`](/documentation/Photos/PHAsset) object that owns this asset resource. If you’ve obtained an asset resource without a reference to its owning asset, use the [`fetchAssets(withLocalIdentifiers:options:)`](/documentation/Photos/PHAsset/fetchAssets(withLocalIdentifiers:options:)) method with this identifier to retrieve the correct [`PHAsset`](/documentation/Photos/PHAsset) object.

---

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)